summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/TransportDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/TransportDialog.cpp')
-rw-r--r--src/gui/dialogs/TransportDialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/gui/dialogs/TransportDialog.cpp b/src/gui/dialogs/TransportDialog.cpp
index a632469..85d311b 100644
--- a/src/gui/dialogs/TransportDialog.cpp
+++ b/src/gui/dialogs/TransportDialog.cpp
@@ -57,10 +57,10 @@
namespace Rosegarden
{
-TransportDialog::TransportDialog(TQWidget *parent,
+TransportDialog::TransportDialog(TQWidget *tqparent,
const char *name,
WFlags flags):
- TQWidget(parent, name, WType_TopLevel | WStyle_DialogBorder | WStyle_Minimize | WStyle_SysMenu | WDestructiveClose),
+ TQWidget(tqparent, name, WType_TopLevel | WStyle_DialogBorder | WStyle_Minimize | WStyle_SysMenu | WDestructiveClose),
m_transport(0),
m_lastTenHours(0),
m_lastUnitHours(0),
@@ -95,22 +95,22 @@ TransportDialog::TransportDialog(TQWidget *parent,
// set the LCD frame background to black
//
- m_transport->LCDBoxFrame->setBackgroundColor(Qt::black);
+ m_transport->LCDBoxFrame->setBackgroundColor(TQt::black);
// set all the pixmap backgrounds to black to avoid
// flickering when we update
//
- m_transport->TenThousandthsPixmap->setBackgroundColor(Qt::black);
- m_transport->ThousandthsPixmap->setBackgroundColor(Qt::black);
- m_transport->HundredthsPixmap->setBackgroundColor(Qt::black);
- m_transport->TenthsPixmap->setBackgroundColor(Qt::black);
- m_transport->UnitSecondsPixmap->setBackgroundColor(Qt::black);
- m_transport->TenSecondsPixmap->setBackgroundColor(Qt::black);
- m_transport->UnitMinutesPixmap->setBackgroundColor(Qt::black);
- m_transport->TenMinutesPixmap->setBackgroundColor(Qt::black);
- m_transport->UnitHoursPixmap->setBackgroundColor(Qt::black);
- m_transport->TenHoursPixmap->setBackgroundColor(Qt::black);
- m_transport->NegativePixmap->setBackgroundColor(Qt::black);
+ m_transport->TenThousandthsPixmap->setBackgroundColor(TQt::black);
+ m_transport->ThousandthsPixmap->setBackgroundColor(TQt::black);
+ m_transport->HundredthsPixmap->setBackgroundColor(TQt::black);
+ m_transport->TenthsPixmap->setBackgroundColor(TQt::black);
+ m_transport->UnitSecondsPixmap->setBackgroundColor(TQt::black);
+ m_transport->TenSecondsPixmap->setBackgroundColor(TQt::black);
+ m_transport->UnitMinutesPixmap->setBackgroundColor(TQt::black);
+ m_transport->TenMinutesPixmap->setBackgroundColor(TQt::black);
+ m_transport->UnitHoursPixmap->setBackgroundColor(TQt::black);
+ m_transport->TenHoursPixmap->setBackgroundColor(TQt::black);
+ m_transport->NegativePixmap->setBackgroundColor(TQt::black);
// unset the negative sign to begin with
m_transport->NegativePixmap->clear();
@@ -206,10 +206,10 @@ TransportDialog::TransportDialog(TQWidget *parent,
pal.setColor(TQColorGroup::Foreground, TQColor(192, 216, 255));
m_transport->TempoDisplay->setPalette(pal);
- m_transport->TempoDisplay->setAlignment(int(TQLabel::AlignVCenter | TQLabel::AlignRight));
+ m_transport->TempoDisplay->tqsetAlignment(int(TQLabel::AlignVCenter | TQLabel::AlignRight));
m_transport->TimeSigDisplay->setPalette(pal);
- m_transport->TimeSigDisplay->setAlignment(int(TQLabel::AlignVCenter | TQLabel::AlignRight));
+ m_transport->TimeSigDisplay->tqsetAlignment(int(TQLabel::AlignVCenter | TQLabel::AlignRight));
TQFont localFont(m_transport->OutDisplay->font() );
localFont.setFamily( "lucida" );
@@ -344,7 +344,7 @@ TransportDialog::loadPixmaps()
TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
for (int i = 0; i < 10; i++) {
- fileName = TQString("%1/transport/led-%2.xpm").arg(pixmapDir).arg(i);
+ fileName = TQString("%1/transport/led-%2.xpm").tqarg(pixmapDir).tqarg(i);
if (!m_lcdList[i].load(fileName)) {
std::cerr << "TransportDialog - failed to load pixmap \""
<< fileName << "\"" << std::endl;
@@ -353,7 +353,7 @@ TransportDialog::loadPixmaps()
// Load the "negative" sign pixmap
//
- fileName = TQString("%1/transport/led--.xpm").arg(pixmapDir);
+ fileName = TQString("%1/transport/led--.xpm").tqarg(pixmapDir);
m_lcdNegative.load(fileName);
}
@@ -479,7 +479,7 @@ TransportDialog::displayTime()
case FrameMode:
m_clearMetronomeTimer->stop();
- m_transport->TimeDisplayLabel->setText(TQString("%1").arg(m_sampleRate));
+ m_transport->TimeDisplayLabel->setText(TQString("%1").tqarg(m_sampleRate));
m_transport->TimeDisplayLabel->show();
break;
}
@@ -727,9 +727,9 @@ TransportDialog::displayBarTime(int bar, int beat, int unit)
if (m_currentMode == BarMetronomeMode && unit < 2) {
if (beat == 1) {
- slotSetBackground(Qt::red);
+ slotSetBackground(TQt::red);
} else {
- slotSetBackground(Qt::cyan);
+ slotSetBackground(TQt::cyan);
}
} else {
slotResetBackground();
@@ -916,8 +916,8 @@ TransportDialog::setMidiInLabel(const MappedEvent *mE)
MidiPitchLabel mPL(mE->getPitch());
m_transport->InDisplay->setText
- (mPL.getQString() +
- TQString(" %1").arg(mE->getVelocity()));
+ (mPL.getTQString() +
+ TQString(" %1").tqarg(mE->getVelocity()));
}
break;
@@ -976,8 +976,8 @@ TransportDialog::setMidiOutLabel(const MappedEvent *mE)
{
MidiPitchLabel mPL(mE->getPitch());
m_transport->OutDisplay->setText
- (mPL.getQString() +
- TQString(" %1").arg(mE->getVelocity()));
+ (mPL.getTQString() +
+ TQString(" %1").tqarg(mE->getVelocity()));
}
break;
@@ -1133,8 +1133,8 @@ TransportDialog::slotSetBackground(TQColor c)
/* this is a bit more thorough, but too slow and flickery:
- const TQObjectList *children = m_transport->LCDBoxFrame->tqchildren();
- TQObjectListIt it(*children);
+ const TQObjectList *tqchildren = m_transport->LCDBoxFrame->tqchildren();
+ TQObjectListIt it(*tqchildren);
TQObject *obj;
while ((obj = it.current()) != 0) {