diff options
Diffstat (limited to 'src/gui/dialogs/IntervalDialog.cpp')
-rw-r--r-- | src/gui/dialogs/IntervalDialog.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
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 <qlayout.h> +#include <tqlayout.h> #include <iostream> #include <klocale.h> @@ -33,27 +33,27 @@ #include "base/NotationRules.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qbuttongroup.h> -#include <qsizepolicy.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqbuttongroup.h> +#include <tqsizepolicy.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> 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) |