summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp')
-rw-r--r--krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp
index c3629304..d7af4eb4 100644
--- a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp
+++ b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp
@@ -26,7 +26,7 @@ void KisScriptProgress::activateAsSubject()
m_view->canvasSubject()->progressDisplay()->setSubject( this, true, false /* TODO: how to cancel a script ? */ );
}
-void KisScriptProgress::setProgressTotalSteps(Q_INT32 totalSteps)
+void KisScriptProgress::setProgressTotalSteps(TQ_INT32 totalSteps)
{
m_progressTotalSteps = totalSteps;
m_progressSteps = 0;
@@ -34,10 +34,10 @@ void KisScriptProgress::setProgressTotalSteps(Q_INT32 totalSteps)
emit notifyProgress(0);
}
-void KisScriptProgress::setProgress(Q_INT32 progress)
+void KisScriptProgress::setProgress(TQ_INT32 progress)
{
m_progressSteps = progress;
- Q_INT32 progressPerCent = (m_progressSteps * 100) / (m_progressTotalSteps > 0 ? m_progressTotalSteps : 1);
+ TQ_INT32 progressPerCent = (m_progressSteps * 100) / (m_progressTotalSteps > 0 ? m_progressTotalSteps : 1);
if (progressPerCent != m_lastProgressPerCent) {
@@ -51,9 +51,9 @@ void KisScriptProgress::incProgress()
setProgress( ++m_progressSteps );
}
-void KisScriptProgress::setProgressStage(const QString& stage, Q_INT32 progress)
+void KisScriptProgress::setProgressStage(const TQString& stage, TQ_INT32 progress)
{
- Q_INT32 progressPerCent = (progress * 100) / (m_progressTotalSteps > 0 ? m_progressTotalSteps : 1);
+ TQ_INT32 progressPerCent = (progress * 100) / (m_progressTotalSteps > 0 ? m_progressTotalSteps : 1);
m_lastProgressPerCent = progress;
emit notifyProgressStage( stage, progressPerCent);
}