summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/parameters/SegmentParameterBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/parameters/SegmentParameterBox.cpp')
-rw-r--r--src/gui/editors/parameters/SegmentParameterBox.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/editors/parameters/SegmentParameterBox.cpp b/src/gui/editors/parameters/SegmentParameterBox.cpp
index 23fce12..8e35960 100644
--- a/src/gui/editors/parameters/SegmentParameterBox.cpp
+++ b/src/gui/editors/parameters/SegmentParameterBox.cpp
@@ -84,10 +84,10 @@ namespace Rosegarden
{
SegmentParameterBox::SegmentParameterBox(RosegardenGUIDoc* doc,
- TQWidget *parent)
+ TQWidget *tqparent)
: RosegardenParameterBox(i18n("Segment"),
i18n("Segment Parameters"),
- parent),
+ tqparent),
m_highestPlayable(127),
m_lowestPlayable(0),
m_standardQuantizations(BasicQuantizer::getStandardQuantizations()),
@@ -315,14 +315,14 @@ SegmentParameterBox::initBox()
// populate the quantize combo
//
- TQPixmap noMap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("menu-no-note"));
+ TQPixmap noMap = NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("menu-no-note"));
for (unsigned int i = 0; i < m_standardQuantizations.size(); ++i) {
timeT time = m_standardQuantizations[i];
timeT error = 0;
TQString label = NotationStrings::makeNoteMenuLabel(time, true, error);
- TQPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
+ TQPixmap pmap = NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
m_quantizeValue->insertItem(error ? noMap : pmap, label);
}
m_quantizeValue->insertItem(noMap, i18n("Off"));
@@ -333,7 +333,7 @@ SegmentParameterBox::initBox()
// populate the transpose combo
//
for (int i = -m_transposeRange; i < m_transposeRange + 1; i++) {
- m_transposeValue->insertItem(noMap, TQString("%1").arg(i));
+ m_transposeValue->insertItem(noMap, TQString("%1").tqarg(i));
if (i == 0)
m_transposeValue->setCurrentItem(m_transposeValue->count() - 1);
}
@@ -356,14 +356,14 @@ SegmentParameterBox::initBox()
//
timeT error = 0;
TQString label = NotationStrings::makeNoteMenuLabel(time, true, error);
- TQPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
+ TQPixmap pmap = NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
m_delayValue->insertItem((error ? noMap : pmap), label);
}
for (int i = 0; i < 10; i++) {
int rtd = (i < 5 ? ((i + 1) * 10) : ((i - 3) * 50));
m_realTimeDelays.push_back(rtd);
- m_delayValue->insertItem(i18n("%1 ms").arg(rtd));
+ m_delayValue->insertItem(i18n("%1 ms").tqarg(rtd));
}
// set delay blank initially
@@ -662,11 +662,11 @@ SegmentParameterBox::populateBoxFromSegments()
m_quantizeValue->setEnabled(quantized != NotApplicable);
switch (transposed) {
- // setCurrentItem works with QStrings
+ // setCurrentItem works with TQStrings
// 2nd arg of "true" means "add if necessary"
case All:
m_transposeValue->
- setCurrentItem(TQString("%1").arg(transposeLevel), true);
+ setCurrentItem(TQString("%1").tqarg(transposeLevel), true);
break;
case Some:
@@ -694,7 +694,7 @@ SegmentParameterBox::populateBoxFromSegments()
} else if (delayLevel < 0) {
- m_delayValue->setCurrentItem(i18n("%1 ms").arg( -delayLevel),
+ m_delayValue->setCurrentItem(i18n("%1 ms").tqarg( -delayLevel),
true);
}
@@ -1019,8 +1019,8 @@ SegmentParameterBox::updateHighLow()
//!!! FIXME this code is broken, and needs to be fixed after the fashion of
//the TPB, but I'm not bothering with that at this time, because they are
//going to be hidden for 1.3 anyway
-// m_highButton->setText(TQString("&High: %1%2").arg(highest.getNoteName(key)).arg(highest.getOctave(base)));
-// m_lowButton->setText(TQString("&Low: %1%2").arg(lowest.getNoteName(key)).arg(lowest.getOctave(base)));
+// m_highButton->setText(TQString("&High: %1%2").tqarg(highest.getNoteName(key)).tqarg(highest.getOctave(base)));
+// m_lowButton->setText(TQString("&Low: %1%2").tqarg(lowest.getNoteName(key)).tqarg(lowest.getOctave(base)));
}
void
@@ -1200,7 +1200,7 @@ SegmentParameterBox::showAdditionalControls(bool showThem)
m_rangeLabel->setShown(showThem); */
}
-QString
+TQString
SegmentParameterBox::getPreviousBox(RosegardenParameterArea::Arrangement arrangement) const
{
if (arrangement == RosegardenParameterArea::CLASSIC_STYLE) {