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/dialogs/ClefDialog.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/dialogs/ClefDialog.cpp')
-rw-r--r-- | src/gui/dialogs/ClefDialog.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/gui/dialogs/ClefDialog.cpp b/src/gui/dialogs/ClefDialog.cpp index 8f802b0..bfb2ee1 100644 --- a/src/gui/dialogs/ClefDialog.cpp +++ b/src/gui/dialogs/ClefDialog.cpp @@ -30,23 +30,23 @@ #include "gui/widgets/BigArrowButton.h" #include <klocale.h> #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qpixmap.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqpixmap.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -ClefDialog::ClefDialog(QWidget *parent, +ClefDialog::ClefDialog(TQWidget *parent, NotePixmapFactory *npf, Clef defaultClef, bool showConversionOptions) : @@ -56,38 +56,38 @@ ClefDialog::ClefDialog(QWidget *parent, { setHelp("nv-signatures-clef"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *clefFrame = new QGroupBox + TQGroupBox *clefFrame = new QGroupBox (1, Horizontal, i18n("Clef"), vbox); - QButtonGroup *conversionFrame = new QButtonGroup + TQButtonGroup *conversionFrame = new QButtonGroup (1, Horizontal, i18n("Existing notes following clef change"), vbox); - QHBox *clefBox = new QHBox(clefFrame); + TQHBox *clefBox = new TQHBox(clefFrame); BigArrowButton *clefDown = new BigArrowButton(clefBox, Qt::LeftArrow); - QToolTip::add + TQToolTip::add (clefDown, i18n("Lower clef")); - QHBox *clefLabelBox = new QVBox(clefBox); + TQHBox *clefLabelBox = new TQVBox(clefBox); m_octaveUp = new BigArrowButton(clefLabelBox, Qt::UpArrow); - QToolTip::add + TQToolTip::add (m_octaveUp, i18n("Up an Octave")); - m_clefLabel = new QLabel(i18n("Clef"), clefLabelBox); + m_clefLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefLabel->setAlignment(AlignVCenter | AlignHCenter); m_octaveDown = new BigArrowButton(clefLabelBox, Qt::DownArrow); - QToolTip::add + TQToolTip::add (m_octaveDown, i18n("Down an Octave")); BigArrowButton *clefUp = new BigArrowButton(clefBox, Qt::RightArrow); - QToolTip::add + TQToolTip::add (clefUp, i18n("Higher clef")); - m_clefNameLabel = new QLabel(i18n("Clef"), clefLabelBox); + m_clefNameLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefNameLabel->setAlignment(AlignVCenter | AlignHCenter); if (showConversionOptions) { @@ -111,10 +111,10 @@ ClefDialog::ClefDialog(QWidget *parent, conversionFrame->hide(); } - QObject::connect(clefUp, SIGNAL(clicked()), this, SLOT(slotClefUp())); - QObject::connect(clefDown, SIGNAL(clicked()), this, SLOT(slotClefDown())); - QObject::connect(m_octaveUp, SIGNAL(clicked()), this, SLOT(slotOctaveUp())); - QObject::connect(m_octaveDown, SIGNAL(clicked()), this, SLOT(slotOctaveDown())); + TQObject::connect(clefUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClefUp())); + TQObject::connect(clefDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClefDown())); + TQObject::connect(m_octaveUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOctaveUp())); + TQObject::connect(m_octaveDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOctaveDown())); redrawClefPixmap(); } @@ -219,11 +219,11 @@ ClefDialog::slotOctaveDown() void ClefDialog::redrawClefPixmap() { - QPixmap pmap = NotePixmapFactory::toQPixmap + TQPixmap pmap = NotePixmapFactory::toQPixmap (m_notePixmapFactory->makeClefDisplayPixmap(m_clef)); m_clefLabel->setPixmap(pmap); - QString name; + TQString name; int octave = m_clef.getOctaveOffset(); switch (octave) { |