summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/CountdownDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/CountdownDialog.cpp')
-rw-r--r--src/gui/dialogs/CountdownDialog.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/gui/dialogs/CountdownDialog.cpp b/src/gui/dialogs/CountdownDialog.cpp
index f624aba..537bc2b 100644
--- a/src/gui/dialogs/CountdownDialog.cpp
+++ b/src/gui/dialogs/CountdownDialog.cpp
@@ -24,36 +24,36 @@
#include "CountdownDialog.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include "CountdownBar.h"
-#include <qaccel.h>
-#include <qdialog.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqdialog.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include "misc/Debug.h"
namespace Rosegarden
{
-CountdownDialog::CountdownDialog(QWidget *parent, int seconds):
- QDialog(parent, "", false, WStyle_StaysOnTop | WStyle_DialogBorder),
+CountdownDialog::CountdownDialog(TQWidget *parent, int seconds):
+ TQDialog(parent, "", false, WStyle_StaysOnTop | WStyle_DialogBorder),
m_pastEndMode(false),
m_totalTime(seconds),
m_progressBarWidth(150),
m_progressBarHeight(15)
{
- QBoxLayout *layout = new QBoxLayout(this, QBoxLayout::TopToBottom, 10, 14);
+ TQBoxLayout *layout = new TQBoxLayout(this, TQBoxLayout::TopToBottom, 10, 14);
setCaption(i18n("Recording..."));
- QHBox *hBox = new QHBox(this);
- m_label = new QLabel(hBox);
- m_time = new QLabel(hBox);
+ TQHBox *hBox = new TQHBox(this);
+ m_label = new TQLabel(hBox);
+ m_time = new TQLabel(hBox);
layout->addWidget(hBox, 0, AlignCenter);
@@ -65,24 +65,24 @@ CountdownDialog::CountdownDialog(QWidget *parent, int seconds):
// Simply re-emit from Stop button
//
- m_stopButton = new QPushButton(i18n("Stop"), this);
+ m_stopButton = new TQPushButton(i18n("Stop"), this);
m_stopButton->setFixedWidth(60);
layout->addWidget(m_progressBar, 0, AlignCenter);
layout->addWidget(m_stopButton, 0, AlignRight);
- connect (m_stopButton, SIGNAL(released()), this, SIGNAL(stopped()));
+ connect (m_stopButton, TQT_SIGNAL(released()), this, TQT_SIGNAL(stopped()));
// Set the total time to show the bar in initial position
//
setElapsedTime(0);
- m_accelerators = new QAccel(this);
+ m_accelerators = new TQAccel(this);
}
void
-CountdownDialog::setLabel(const QString &label)
+CountdownDialog::setLabel(const TQString &label)
{
m_label->setText(label);
}
@@ -105,17 +105,17 @@ CountdownDialog::setElapsedTime(int elapsedSeconds)
setPastEndMode();
}
- QString h, m, s;
+ TQString h, m, s;
h.sprintf("%02d", seconds / 3600);
m.sprintf("%02d", seconds / 60);
s.sprintf("%02d", seconds % 60);
if (seconds < 3600) // less than an hour
{
- m_time->setText(QString("%1:%2").arg(m).arg(s));
+ m_time->setText(TQString("%1:%2").arg(m).arg(s));
} else if (seconds < 86400) // less than a day
{
- m_time->setText(QString("%1:%2:%3").arg(h).arg(m).arg(s));
+ m_time->setText(TQString("%1:%2:%3").arg(h).arg(m).arg(s));
} else {
m_time->setText(i18n("Just how big is your hard disk?"));
}