summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/CountdownDialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
commit458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch)
tree624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/dialogs/CountdownDialog.cpp
parent747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff)
downloadrosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz
rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/dialogs/CountdownDialog.cpp')
-rw-r--r--src/gui/dialogs/CountdownDialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/dialogs/CountdownDialog.cpp b/src/gui/dialogs/CountdownDialog.cpp
index 537bc2b..31b3bef 100644
--- a/src/gui/dialogs/CountdownDialog.cpp
+++ b/src/gui/dialogs/CountdownDialog.cpp
@@ -41,21 +41,21 @@
namespace Rosegarden
{
-CountdownDialog::CountdownDialog(TQWidget *parent, int seconds):
- TQDialog(parent, "", false, WStyle_StaysOnTop | WStyle_DialogBorder),
+CountdownDialog::CountdownDialog(TQWidget *tqparent, int seconds):
+ TQDialog(tqparent, "", false, WStyle_StaysOnTop | WStyle_DialogBorder),
m_pastEndMode(false),
m_totalTime(seconds),
m_progressBarWidth(150),
m_progressBarHeight(15)
{
- TQBoxLayout *layout = new TQBoxLayout(this, TQBoxLayout::TopToBottom, 10, 14);
+ TQBoxLayout *tqlayout = new TQBoxLayout(this, TQBoxLayout::TopToBottom, 10, 14);
setCaption(i18n("Recording..."));
TQHBox *hBox = new TQHBox(this);
m_label = new TQLabel(hBox);
m_time = new TQLabel(hBox);
- layout->addWidget(hBox, 0, AlignCenter);
+ tqlayout->addWidget(hBox, 0, AlignCenter);
m_label->setText(i18n("Recording time remaining: "));
m_progressBar =
@@ -68,8 +68,8 @@ CountdownDialog::CountdownDialog(TQWidget *parent, int seconds):
m_stopButton = new TQPushButton(i18n("Stop"), this);
m_stopButton->setFixedWidth(60);
- layout->addWidget(m_progressBar, 0, AlignCenter);
- layout->addWidget(m_stopButton, 0, AlignRight);
+ tqlayout->addWidget(m_progressBar, 0, AlignCenter);
+ tqlayout->addWidget(m_stopButton, 0, AlignRight);
connect (m_stopButton, TQT_SIGNAL(released()), this, TQT_SIGNAL(stopped()));
@@ -112,10 +112,10 @@ CountdownDialog::setElapsedTime(int elapsedSeconds)
if (seconds < 3600) // less than an hour
{
- m_time->setText(TQString("%1:%2").arg(m).arg(s));
+ m_time->setText(TQString("%1:%2").tqarg(m).tqarg(s));
} else if (seconds < 86400) // less than a day
{
- m_time->setText(TQString("%1:%2:%3").arg(h).arg(m).arg(s));
+ m_time->setText(TQString("%1:%2:%3").tqarg(h).tqarg(m).tqarg(s));
} else {
m_time->setText(i18n("Just how big is your hard disk?"));
}