From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/dialogs/IntervalDialog.cpp | 58 +++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'src/gui/dialogs/IntervalDialog.cpp') diff --git a/src/gui/dialogs/IntervalDialog.cpp b/src/gui/dialogs/IntervalDialog.cpp index 061fc31..da8e4dc 100644 --- a/src/gui/dialogs/IntervalDialog.cpp +++ b/src/gui/dialogs/IntervalDialog.cpp @@ -24,7 +24,7 @@ #include "IntervalDialog.h" -#include +#include #include #include @@ -33,27 +33,27 @@ #include "base/NotationRules.h" #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace Rosegarden { -IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTransposeSegmentBack) : +IntervalDialog::IntervalDialog(TQWidget *parent, bool askChangeKey, bool askTransposeSegmentBack) : KDialogBase(parent, 0, true, i18n("Specify Interval"), Ok | Cancel ) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QHBox *hBox = new QHBox( vBox ); + TQHBox *hBox = new TQHBox( vBox ); m_referencenote = new DiatonicPitchChooser( i18n("Reference note:"), hBox ); m_targetnote = new DiatonicPitchChooser( i18n("Target note:"), hBox ); @@ -61,22 +61,22 @@ IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTrans intervalChromatic = 0; intervalDiatonic = 0; - //m_intervalPitchLabel = new QLabel( i18n("Pitch: %1").arg(intervalChromatic), hBox); - //m_intervalOctavesLabel = new QLabel( i18n("Octaves: %1").arg(intervalDiatonic / 7), hBox); - //m_intervalStepsLabel = new QLabel( i18n("Steps: %1").arg(intervalDiatonic % 7), hBox); + //m_intervalPitchLabel = new TQLabel( i18n("Pitch: %1").arg(intervalChromatic), hBox); + //m_intervalOctavesLabel = new TQLabel( i18n("Octaves: %1").arg(intervalDiatonic / 7), hBox); + //m_intervalStepsLabel = new TQLabel( i18n("Steps: %1").arg(intervalDiatonic % 7), hBox); - m_intervalLabel = new QLabel( i18n("a perfect unison"), vBox); + m_intervalLabel = new TQLabel( i18n("a perfect unison"), vBox); m_intervalLabel->setAlignment(Qt::AlignCenter); - QFont font(m_intervalLabel->font()); + TQFont font(m_intervalLabel->font()); font.setItalic(true); m_intervalLabel->setFont(font); if (askChangeKey) { - QButtonGroup *affectKeyGroup = new QButtonGroup(1, Horizontal, i18n("Effect on Key"), vBox); - m_transposeWithinKey = new QRadioButton(i18n("Transpose within key"), affectKeyGroup); + TQButtonGroup *affectKeyGroup = new TQButtonGroup(1, Horizontal, i18n("Effect on Key"), vBox); + m_transposeWithinKey = new TQRadioButton(i18n("Transpose within key"), affectKeyGroup); m_transposeWithinKey->setChecked(true); - m_transposeChangingKey = new QRadioButton(i18n("Change key for selection"), affectKeyGroup); + m_transposeChangingKey = new TQRadioButton(i18n("Change key for selection"), affectKeyGroup); } else { @@ -86,7 +86,7 @@ IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTrans if (askTransposeSegmentBack) { - m_transposeSegmentBack = new QCheckBox( i18n("Adjust segment transposition in opposite direction (maintain audible pitch)"), vBox ); + m_transposeSegmentBack = new TQCheckBox( i18n("Adjust segment transposition in opposite direction (maintain audible pitch)"), vBox ); m_transposeSegmentBack->setTristate(false); m_transposeSegmentBack->setChecked(false); } @@ -95,11 +95,11 @@ IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTrans m_transposeSegmentBack = NULL; } - connect(m_referencenote, SIGNAL(noteChanged(int,int,int)), - this, SLOT(slotSetReferenceNote(int,int,int))); + connect(m_referencenote, TQT_SIGNAL(noteChanged(int,int,int)), + this, TQT_SLOT(slotSetReferenceNote(int,int,int))); - connect(m_targetnote, SIGNAL(noteChanged(int,int,int)), - this, SLOT(slotSetTargetNote(int,int,int))); + connect(m_targetnote, TQT_SIGNAL(noteChanged(int,int,int)), + this, TQT_SLOT(slotSetTargetNote(int,int,int))); } // number of octaves the notes are apart @@ -176,8 +176,8 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic) bool showStep = displayIntervalDiatonic == 0 || displayIntervalDiatonic % 7 != 0 || deviation != 0; - QString textInterval = ""; - QString textIntervalDeviated = ""; + TQString textInterval = ""; + TQString textIntervalDeviated = ""; if (showStep) { switch (displayIntervalDiatonic % 7) -- cgit v1.2.3