summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/ProgressDialog.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/widgets/ProgressDialog.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/widgets/ProgressDialog.cpp')
-rw-r--r--src/gui/widgets/ProgressDialog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/ProgressDialog.cpp b/src/gui/widgets/ProgressDialog.cpp
index 715e9ae..e8ff6ee 100644
--- a/src/gui/widgets/ProgressDialog.cpp
+++ b/src/gui/widgets/ProgressDialog.cpp
@@ -45,7 +45,7 @@ ProgressDialog::ProgressDialog(TQWidget *creator,
const char *name,
bool modal):
KProgressDialog(creator, name,
- i18n("Processing..."), TQString::null, modal),
+ i18n("Processing..."), TQString(), modal),
m_wasVisible(false),
m_frozen(false),
m_modal(modal)
@@ -107,9 +107,9 @@ ProgressDialog::polish()
KProgressDialog::polish();
if (allowCancel())
- setCursor(Qt::ArrowCursor);
+ setCursor(TQt::ArrowCursor);
else
- TQApplication::setOverrideCursor(TQCursor(Qt::waitCursor));
+ TQApplication::setOverrideCursor(TQCursor(TQt::waitCursor));
}
void ProgressDialog::hideEvent(TQHideEvent* e)
@@ -128,10 +128,10 @@ ProgressDialog::slotSetOperationName(TQString name)
// << name << ") visible : " << isVisible() << endl;
setLabel(name);
- // Little trick stolen from QProgressDialog
+ // Little trick stolen from TQProgressDialog
// increase resize only, never shrink
- int w = QMAX( isVisible() ? width() : 0, sizeHint().width() );
- int h = QMAX( isVisible() ? height() : 0, sizeHint().height() );
+ int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() );
+ int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() );
resize( w, h );
}
@@ -199,7 +199,7 @@ void ProgressDialog::processEvents()
// RG_DEBUG << "ProgressDialog::processEvents: modalVisible is "
// << m_modalVisible << endl;
if (m_modalVisible) {
- kapp->processEvents(50);
+ kapp->tqprocessEvents(50);
} else {
rgapp->refreshGUI(50);
}