summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/CollapsingFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/CollapsingFrame.cpp')
-rw-r--r--src/gui/widgets/CollapsingFrame.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/widgets/CollapsingFrame.cpp b/src/gui/widgets/CollapsingFrame.cpp
index 1f71ebf..fdc351b 100644
--- a/src/gui/widgets/CollapsingFrame.cpp
+++ b/src/gui/widgets/CollapsingFrame.cpp
@@ -28,43 +28,43 @@
#include <kstddirs.h>
#include <kconfig.h>
#include <kglobal.h>
-#include <qfont.h>
-#include <qframe.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qstring.h>
-#include <qtoolbutton.h>
-#include <qwidget.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqtoolbutton.h>
+#include <tqwidget.h>
#include <cassert>
namespace Rosegarden
{
-CollapsingFrame::CollapsingFrame(QString label, QWidget *parent, const char *n) :
- QFrame(parent, n),
+CollapsingFrame::CollapsingFrame(TQString label, TQWidget *parent, const char *n) :
+ TQFrame(parent, n),
m_widget(0),
m_fill(false),
m_collapsed(false)
{
- m_layout = new QGridLayout(this, 3, 3, 0, 0);
+ m_layout = new TQGridLayout(this, 3, 3, 0, 0);
- m_toggleButton = new QToolButton(this);
+ m_toggleButton = new TQToolButton(this);
m_toggleButton->setTextLabel(label);
m_toggleButton->setUsesTextLabel(true);
m_toggleButton->setUsesBigPixmap(false);
- m_toggleButton->setTextPosition(QToolButton::BesideIcon);
+ m_toggleButton->setTextPosition(TQToolButton::BesideIcon);
m_toggleButton->setAutoRaise(true);
- QFont font(m_toggleButton->font());
+ TQFont font(m_toggleButton->font());
font.setBold(true);
m_toggleButton->setFont(font);
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QPixmap pixmap(pixmapDir + "/misc/arrow-expanded.png");
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQPixmap pixmap(pixmapDir + "/misc/arrow-expanded.png");
m_toggleButton->setIconSet(pixmap);
- connect(m_toggleButton, SIGNAL(clicked()), this, SLOT(toggle()));
+ connect(m_toggleButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggle()));
m_layout->addMultiCellWidget(m_toggleButton, 0, 0, 0, 2);
}
@@ -85,13 +85,13 @@ CollapsingFrame::font() const
}
void
-CollapsingFrame::setFont(QFont font)
+CollapsingFrame::setFont(TQFont font)
{
m_toggleButton->setFont(font);
}
void
-CollapsingFrame::setWidget(QWidget *widget)
+CollapsingFrame::setWidget(TQWidget *widget)
{
assert(!m_widget);
m_widget = widget;
@@ -104,7 +104,7 @@ CollapsingFrame::setWidget(QWidget *widget)
bool expanded = true;
if (name(0)) {
KConfig *config = kapp->config();
- QString groupTemp = config->group();
+ TQString groupTemp = config->group();
config->setGroup("CollapsingFrame");
expanded = config->readBoolEntry(name(), true);
config->setGroup(groupTemp);
@@ -122,18 +122,18 @@ CollapsingFrame::toggle()
m_widget->setShown(!m_collapsed);
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QPixmap pixmap;
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQPixmap pixmap;
if (m_collapsed) {
- pixmap = QPixmap(pixmapDir + "/misc/arrow-contracted.png");
+ pixmap = TQPixmap(pixmapDir + "/misc/arrow-contracted.png");
} else {
- pixmap = QPixmap(pixmapDir + "/misc/arrow-expanded.png");
+ pixmap = TQPixmap(pixmapDir + "/misc/arrow-expanded.png");
}
if (name(0)) {
KConfig *config = kapp->config();
- QString groupTemp = config->group();
+ TQString groupTemp = config->group();
config->setGroup("CollapsingFrame");
config->writeEntry(name(), !m_collapsed);
config->setGroup(groupTemp);