summaryrefslogtreecommitdiffstats
path: root/src/progressindicator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/progressindicator.cpp
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/progressindicator.cpp')
-rw-r--r--src/progressindicator.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/progressindicator.cpp b/src/progressindicator.cpp
index 6509150..9936df5 100644
--- a/src/progressindicator.cpp
+++ b/src/progressindicator.cpp
@@ -22,13 +22,13 @@
#include "dolphin.h"
#include "dolphinstatusbar.h"
-ProgressIndicator::ProgressIndicator(const QString& progressText,
- const QString& finishedText,
+ProgressIndicator::ProgressIndicator(const TQString& progressText,
+ const TQString& finishedText,
int operationsCount)
: m_showProgress(false),
m_operationsCount(operationsCount),
m_operationsIndex(0),
- m_startTime(QTime::currentTime()),
+ m_startTime(TQTime::currentTime()),
m_finishedText(finishedText)
{
DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar();
@@ -41,7 +41,7 @@ ProgressIndicator::ProgressIndicator(const QString& progressText,
ProgressIndicator::~ProgressIndicator()
{
DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar();
- statusBar->setProgressText(QString::null);
+ statusBar->setProgressText(TQString());
statusBar->setProgress(100);
statusBar->setMessage(m_finishedText, DolphinStatusBar::OperationCompleted);
@@ -55,7 +55,7 @@ void ProgressIndicator::execOperation()
++m_operationsIndex;
if (!m_showProgress) {
- const int elapsed = m_startTime.msecsTo(QTime::currentTime());
+ const int elapsed = m_startTime.msecsTo(TQTime::currentTime());
if (elapsed > 500) {
// the operations took already more than 500 milliseconds,
// therefore show a progress indication
@@ -65,14 +65,14 @@ void ProgressIndicator::execOperation()
}
if (m_showProgress) {
- const QTime currentTime = QTime::currentTime();
+ const TQTime currentTime = TQTime::currentTime();
if (m_startTime.msecsTo(currentTime) > 100) {
m_startTime = currentTime;
DolphinStatusBar* statusBar = Dolphin::mainWin().activeView()->statusBar();
statusBar->setProgress((m_operationsIndex * 100) / m_operationsCount);
kapp->processEvents();
- statusBar->repaint();
+ statusBar->tqrepaint();
}
}
}