diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:40:46 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:40:46 -0600 |
commit | 97f1c43c867725d49f3943a68ef08d7e71767e99 (patch) | |
tree | ece35be847c1fcc581a6db7b3d9fc6aa497590af /src/gui/editors/eventlist | |
parent | ef13416bfc43e51ef4e20919e0fab81ae05e0fe2 (diff) | |
download | rosegarden-97f1c43c867725d49f3943a68ef08d7e71767e99.tar.gz rosegarden-97f1c43c867725d49f3943a68ef08d7e71767e99.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/gui/editors/eventlist')
-rw-r--r-- | src/gui/editors/eventlist/EventView.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/gui/editors/eventlist/EventView.cpp b/src/gui/editors/eventlist/EventView.cpp index 91b2b4d..273c2d1 100644 --- a/src/gui/editors/eventlist/EventView.cpp +++ b/src/gui/editors/eventlist/EventView.cpp @@ -174,14 +174,14 @@ EventView::EventView(RosegardenGUIDoc *doc, connect(editButton, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(slotEditTriggerName())); tqlayout->addWidget(new TQLabel(i18n("Base pitch: "), frame), 1, 0); - m_triggerPitch = new TQLabel(TQString("%1").tqarg(rec->getBasePitch()), frame); + m_triggerPitch = new TQLabel(TQString("%1").arg(rec->getBasePitch()), frame); tqlayout->addWidget(m_triggerPitch, 1, 1); editButton = new TQPushButton(i18n("edit"), frame); tqlayout->addWidget(editButton, 1, 2); connect(editButton, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(slotEditTriggerPitch())); tqlayout->addWidget(new TQLabel(i18n("Base velocity: "), frame), 2, 0); - m_triggerVelocity = new TQLabel(TQString("%1").tqarg(rec->getBaseVelocity()), frame); + m_triggerVelocity = new TQLabel(TQString("%1").arg(rec->getBaseVelocity()), frame); tqlayout->addWidget(m_triggerVelocity, 2, 1); editButton = new TQPushButton(i18n("edit"), frame); tqlayout->addWidget(editButton, 2, 2); @@ -387,7 +387,7 @@ EventView::applyLayout(int /*staffNo*/) int p = (*it)->get <Int>(BaseProperties::PITCH); pitchStr = TQString("%1 %2 ") - .tqarg(p).tqarg(MidiPitchLabel(p).getTQString()); + .arg(p).arg(MidiPitchLabel(p).getTQString()); } else if ((*it)->isa(Note::EventType)) { pitchStr = "<not set>"; } @@ -613,27 +613,27 @@ EventView::makeTimeString(timeT time, int timeMode) (time, bar, beat, fraction, remainder); ++bar; return TQString("%1%2%3-%4%5-%6%7-%8%9 ") - .tqarg(bar / 100) - .tqarg((bar % 100) / 10) - .tqarg(bar % 10) - .tqarg(beat / 10) - .tqarg(beat % 10) - .tqarg(fraction / 10) - .tqarg(fraction % 10) - .tqarg(remainder / 10) - .tqarg(remainder % 10); + .arg(bar / 100) + .arg((bar % 100) / 10) + .arg(bar % 10) + .arg(beat / 10) + .arg(beat % 10) + .arg(fraction / 10) + .arg(fraction % 10) + .arg(remainder / 10) + .arg(remainder % 10); } case 1: // real time { RealTime rt = getDocument()->getComposition().getElapsedRealTime(time); - // return TQString("%1 ").tqarg(rt.toString().c_str()); - return TQString("%1 ").tqarg(rt.toText().c_str()); + // return TQString("%1 ").arg(rt.toString().c_str()); + return TQString("%1 ").arg(rt.toText().c_str()); } default: - return TQString("%1 ").tqarg(time); + return TQString("%1 ").arg(time); } } @@ -649,15 +649,15 @@ EventView::makeDurationString(timeT time, getDocument()->getComposition().getMusicalTimeForDuration (time, duration, bar, beat, fraction, remainder); return TQString("%1%2%3-%4%5-%6%7-%8%9 ") - .tqarg(bar / 100) - .tqarg((bar % 100) / 10) - .tqarg(bar % 10) - .tqarg(beat / 10) - .tqarg(beat % 10) - .tqarg(fraction / 10) - .tqarg(fraction % 10) - .tqarg(remainder / 10) - .tqarg(remainder % 10); + .arg(bar / 100) + .arg((bar % 100) / 10) + .arg(bar % 10) + .arg(beat / 10) + .arg(beat % 10) + .arg(fraction / 10) + .arg(fraction % 10) + .arg(remainder / 10) + .arg(remainder % 10); } case 1: // real time @@ -665,12 +665,12 @@ EventView::makeDurationString(timeT time, RealTime rt = getDocument()->getComposition().getRealTimeDifference (time, time + duration); - // return TQString("%1 ").tqarg(rt.toString().c_str()); - return TQString("%1 ").tqarg(rt.toText().c_str()); + // return TQString("%1 ").arg(rt.toString().c_str()); + return TQString("%1 ").arg(rt.toText().c_str()); } default: - return TQString("%1 ").tqarg(duration); + return TQString("%1 ").arg(duration); } } @@ -719,7 +719,7 @@ EventView::slotEditTriggerPitch() if (dlg->exec() == TQDialog::Accepted) { addCommandToHistory(new SetTriggerSegmentBasePitchCommand (&getDocument()->getComposition(), id, dlg->getPitch())); - m_triggerPitch->setText(TQString("%1").tqarg(dlg->getPitch())); + m_triggerPitch->setText(TQString("%1").arg(dlg->getPitch())); } } @@ -737,7 +737,7 @@ EventView::slotEditTriggerVelocity() if (dlg->exec() == TQDialog::Accepted) { addCommandToHistory(new SetTriggerSegmentBaseVelocityCommand (&getDocument()->getComposition(), id, dlg->getVelocity())); - m_triggerVelocity->setText(TQString("%1").tqarg(dlg->getVelocity())); + m_triggerVelocity->setText(TQString("%1").arg(dlg->getVelocity())); } } @@ -1575,8 +1575,8 @@ EventView::updateViewCaption() if (m_isTriggerSegment) { setCaption(i18n("%1 - Triggered Segment: %2") - .tqarg(getDocument()->getTitle()) - .tqarg(strtoqstr(m_segments[0]->getLabel()))); + .arg(getDocument()->getTitle()) + .arg(strtoqstr(m_segments[0]->getLabel()))); } else if (m_segments.size() == 1) { @@ -1590,14 +1590,14 @@ EventView::updateViewCaption() trackPosition = track->getPosition(); setCaption(i18n("%1 - Segment Track #%2 - Event List") - .tqarg(getDocument()->getTitle()) - .tqarg(trackPosition + 1)); + .arg(getDocument()->getTitle()) + .arg(trackPosition + 1)); } else { setCaption(i18n("%1 - %2 Segments - Event List") - .tqarg(getDocument()->getTitle()) - .tqarg(m_segments.size())); + .arg(getDocument()->getTitle()) + .arg(m_segments.size())); } } |