diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/CollapsingFrame.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/CollapsingFrame.cpp')
-rw-r--r-- | src/gui/widgets/CollapsingFrame.cpp | 48 |
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); |