summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/IntervalDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/IntervalDialog.cpp')
-rw-r--r--src/gui/dialogs/IntervalDialog.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/dialogs/IntervalDialog.cpp b/src/gui/dialogs/IntervalDialog.cpp
index da8e4dc..be238d3 100644
--- a/src/gui/dialogs/IntervalDialog.cpp
+++ b/src/gui/dialogs/IntervalDialog.cpp
@@ -48,8 +48,8 @@
namespace Rosegarden
{
-IntervalDialog::IntervalDialog(TQWidget *parent, bool askChangeKey, bool askTransposeSegmentBack) :
- KDialogBase(parent, 0, true, i18n("Specify Interval"), Ok | Cancel )
+IntervalDialog::IntervalDialog(TQWidget *tqparent, bool askChangeKey, bool askTransposeSegmentBack) :
+ KDialogBase(tqparent, 0, true, i18n("Specify Interval"), Ok | Cancel )
{
TQVBox *vBox = makeVBoxMainWidget();
@@ -61,19 +61,19 @@ IntervalDialog::IntervalDialog(TQWidget *parent, bool askChangeKey, bool askTran
intervalChromatic = 0;
intervalDiatonic = 0;
- //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_intervalPitchLabel = new TQLabel( i18n("Pitch: %1").tqarg(intervalChromatic), hBox);
+ //m_intervalOctavesLabel = new TQLabel( i18n("Octaves: %1").tqarg(intervalDiatonic / 7), hBox);
+ //m_intervalStepsLabel = new TQLabel( i18n("Steps: %1").tqarg(intervalDiatonic % 7), hBox);
m_intervalLabel = new TQLabel( i18n("a perfect unison"), vBox);
- m_intervalLabel->setAlignment(Qt::AlignCenter);
+ m_intervalLabel->tqsetAlignment(TQt::AlignCenter);
TQFont font(m_intervalLabel->font());
font.setItalic(true);
m_intervalLabel->setFont(font);
if (askChangeKey)
{
- TQButtonGroup *affectKeyGroup = new TQButtonGroup(1, Horizontal, i18n("Effect on Key"), vBox);
+ TQButtonGroup *affectKeyGroup = new TQButtonGroup(1, Qt::Horizontal, i18n("Effect on Key"), vBox);
m_transposeWithinKey = new TQRadioButton(i18n("Transpose within key"), affectKeyGroup);
m_transposeWithinKey->setChecked(true);
m_transposeChangingKey = new TQRadioButton(i18n("Change key for selection"), affectKeyGroup);
@@ -138,7 +138,7 @@ IntervalDialog::getChromaticDistance()
return getOctaveDistance() * 12 + getStepDistanceChromatic() + getAccidentalCorrectionChromatic();
}
-QString
+TQString
IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic)
{
// displayInterval: an intervalDiatonic of -3 will yield a displayInterval of 3 and
@@ -205,7 +205,7 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic)
else if (deviation == 0)
textIntervalDeviated += i18n("a perfect");
else
- textIntervalDeviated += i18n("an (unknown, %1)").arg(deviation);
+ textIntervalDeviated += i18n("an (unknown, %1)").tqarg(deviation);
break;
// Then the major/minor:
case 1: // second
@@ -233,7 +233,7 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic)
else if (deviation == 0)
textIntervalDeviated += i18n("a perfect");
else
- textIntervalDeviated += i18n("an (unknown, %1)").arg(deviation);
+ textIntervalDeviated += i18n("an (unknown, %1)").tqarg(deviation);
break;
default:
textIntervalDeviated += i18n("an (unknown)");
@@ -245,35 +245,35 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic)
// "1 octave and a diminished octave" is better than
// "2 octaves and a diminished unison"
if (octaves > 0) {
- textInterval += i18n("%1 octave").arg(textIntervalDeviated);
+ textInterval += i18n("%1 octave").tqarg(textIntervalDeviated);
octaves--;
} else if (octaves < 0) {
- textInterval += i18n("%1 octave").arg(textIntervalDeviated);
+ textInterval += i18n("%1 octave").tqarg(textIntervalDeviated);
octaves++;
} else {
- textInterval += i18n("%1 unison").arg(textIntervalDeviated);
+ textInterval += i18n("%1 unison").tqarg(textIntervalDeviated);
}
break;
case 1:
- textInterval += i18n("%1 second").arg(textIntervalDeviated);
+ textInterval += i18n("%1 second").tqarg(textIntervalDeviated);
break;
case 2:
- textInterval += i18n("%1 third").arg(textIntervalDeviated);
+ textInterval += i18n("%1 third").tqarg(textIntervalDeviated);
break;
case 3:
- textInterval += i18n("%1 fourth").arg(textIntervalDeviated);
+ textInterval += i18n("%1 fourth").tqarg(textIntervalDeviated);
break;
case 4:
- textInterval += i18n("%1 fifth").arg(textIntervalDeviated);
+ textInterval += i18n("%1 fifth").tqarg(textIntervalDeviated);
break;
case 5:
- textInterval += i18n("%1 sixth").arg(textIntervalDeviated);
+ textInterval += i18n("%1 sixth").tqarg(textIntervalDeviated);
break;
case 6:
- textInterval += i18n("%1 seventh").arg(textIntervalDeviated);
+ textInterval += i18n("%1 seventh").tqarg(textIntervalDeviated);
break;
default:
- textInterval += i18n("%1").arg(textIntervalDeviated);
+ textInterval += i18n("%1").tqarg(textIntervalDeviated);
}
}
@@ -285,14 +285,14 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic)
if (showStep) {
return i18n("up 1 octave and %1",
"up %n octaves and %1",
- octaves).arg(textInterval);
+ octaves).tqarg(textInterval);
} else {
return i18n("up 1 octave",
"up %n octaves",
octaves);
}
} else {
- return i18n("up %1").arg(textInterval);
+ return i18n("up %1").tqarg(textInterval);
}
}
else
@@ -301,14 +301,14 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic)
if (showStep) {
return i18n("down 1 octave and %1",
"down %n octaves and %1",
- octaves).arg(textInterval);
+ octaves).tqarg(textInterval);
} else {
return i18n("down 1 octave",
"down %n octaves",
octaves);
}
} else {
- return i18n("down %1").arg(textInterval);
+ return i18n("down %1").tqarg(textInterval);
}
}
} else {