summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/ProgressDialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/ProgressDialog.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;