diff options
Diffstat (limited to 'src/progressindicator.cpp')
-rw-r--r-- | src/progressindicator.cpp | 14 |
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(); } } } |