summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/ProgressDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/ProgressDialog.cpp')
-rw-r--r--src/gui/widgets/ProgressDialog.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/widgets/ProgressDialog.cpp b/src/gui/widgets/ProgressDialog.cpp
index 1f6811f..715e9ae 100644
--- a/src/gui/widgets/ProgressDialog.cpp
+++ b/src/gui/widgets/ProgressDialog.cpp
@@ -28,11 +28,11 @@
#include "misc/Debug.h"
#include "gui/application/RosegardenApplication.h"
#include <klocale.h>
-#include <qcursor.h>
-#include <qprogressdialog.h>
-#include <qstring.h>
-#include <qtimer.h>
-#include <qwidget.h>
+#include <tqcursor.h>
+#include <tqprogressdialog.h>
+#include <tqstring.h>
+#include <tqtimer.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -41,11 +41,11 @@ namespace Rosegarden
bool ProgressDialog::m_modalVisible = false;
-ProgressDialog::ProgressDialog(QWidget *creator,
+ProgressDialog::ProgressDialog(TQWidget *creator,
const char *name,
bool modal):
KProgressDialog(creator, name,
- i18n("Processing..."), QString::null, modal),
+ i18n("Processing..."), TQString::null, modal),
m_wasVisible(false),
m_frozen(false),
m_modal(modal)
@@ -54,8 +54,8 @@ ProgressDialog::ProgressDialog(QWidget *creator,
RG_DEBUG << "ProgressDialog::ProgressDialog type 1 - "
<< labelText() << " - modal : " << modal << endl;
- connect(progressBar(), SIGNAL(percentageChanged (int)),
- this, SLOT(slotCheckShow(int)));
+ connect(progressBar(), TQT_SIGNAL(percentageChanged (int)),
+ this, TQT_SLOT(slotCheckShow(int)));
m_chrono.start();
@@ -66,9 +66,9 @@ ProgressDialog::ProgressDialog(QWidget *creator,
}
ProgressDialog::ProgressDialog(
- const QString &labelText,
+ const TQString &labelText,
int totalSteps,
- QWidget *creator,
+ TQWidget *creator,
const char *name,
bool modal) :
KProgressDialog(creator,
@@ -85,8 +85,8 @@ ProgressDialog::ProgressDialog(
RG_DEBUG << "ProgressDialog::ProgressDialog type 2 - "
<< labelText << " - modal : " << modal << endl;
- connect(progressBar(), SIGNAL(percentageChanged (int)),
- this, SLOT(slotCheckShow(int)));
+ connect(progressBar(), TQT_SIGNAL(percentageChanged (int)),
+ this, TQT_SLOT(slotCheckShow(int)));
m_chrono.start();
@@ -109,20 +109,20 @@ ProgressDialog::polish()
if (allowCancel())
setCursor(Qt::ArrowCursor);
else
- QApplication::setOverrideCursor(QCursor(Qt::waitCursor));
+ TQApplication::setOverrideCursor(TQCursor(Qt::waitCursor));
}
-void ProgressDialog::hideEvent(QHideEvent* e)
+void ProgressDialog::hideEvent(TQHideEvent* e)
{
if (!allowCancel())
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
KProgressDialog::hideEvent(e);
m_modalVisible = false;
}
void
-ProgressDialog::slotSetOperationName(QString name)
+ProgressDialog::slotSetOperationName(TQString name)
{
// RG_DEBUG << "ProgressDialog::slotSetOperationName("
// << name << ") visible : " << isVisible() << endl;
@@ -172,7 +172,7 @@ void ProgressDialog::slotFreeze()
// This is also a convenient place to ensure the wait cursor (if
// currently shown) returns to the original cursor to ensure that
// the user can respond to whatever's freezing the progress dialog
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
mShowTimer->stop();
m_frozen = true;