summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/scripting/kritascripting
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/scripting/kritascripting')
-rw-r--r--krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.cpp4
-rw-r--r--krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.h5
-rw-r--r--krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.cpp10
-rw-r--r--krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.h14
4 files changed, 17 insertions, 16 deletions
diff --git a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.cpp b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.cpp
index 8bb12596..3967ffe7 100644
--- a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.cpp
+++ b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.cpp
@@ -34,8 +34,8 @@ KisScriptMonitor::~KisScriptMonitor()
void KisScriptMonitor::monitor(Kross::Api::ScriptGUIClient* guiClient)
{
- connect(guiClient, SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), SIGNAL(executionFinished( const Kross::Api::ScriptAction* )));
- connect(guiClient, SIGNAL(executionStarted( const Kross::Api::ScriptAction* )), SIGNAL(executionStarted( const Kross::Api::ScriptAction* )));
+ connect(guiClient, TQT_SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), TQT_SIGNAL(executionFinished( const Kross::Api::ScriptAction* )));
+ connect(guiClient, TQT_SIGNAL(executionStarted( const Kross::Api::ScriptAction* )), TQT_SIGNAL(executionStarted( const Kross::Api::ScriptAction* )));
}
KisScriptMonitor* KisScriptMonitor::s_instance = 0;
diff --git a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.h b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.h
index de1e0380..c1ee64c0 100644
--- a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.h
+++ b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_monitor.h
@@ -19,7 +19,7 @@
#ifndef KIS_SCRIPT_MONITOR_H
#define KIS_SCRIPT_MONITOR_H
-#include <qobject.h>
+#include <tqobject.h>
namespace Kross {
namespace Api {
@@ -31,8 +31,9 @@ namespace Kross {
/**
@author Cyrille Berger <[email protected]>
*/
-class KisScriptMonitor : public QObject {
+class KisScriptMonitor : public TQObject {
Q_OBJECT
+ TQ_OBJECT
private:
KisScriptMonitor();
~KisScriptMonitor();
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);
}
diff --git a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.h b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.h
index 864a6760..48af433c 100644
--- a/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.h
+++ b/krita/plugins/viewplugins/scripting/kritascripting/kis_script_progress.h
@@ -38,17 +38,17 @@ class KisScriptProgress : public KisProgressSubject
void activateAsSubject();
virtual void cancel() {};
public:
- void setProgressTotalSteps(Q_INT32 totalSteps);
- void setProgress(Q_INT32 progress);
+ void setProgressTotalSteps(TQ_INT32 totalSteps);
+ void setProgress(TQ_INT32 progress);
void incProgress();
- void setProgressStage(const QString& stage, Q_INT32 progress);
+ void setProgressStage(const TQString& stage, TQ_INT32 progress);
void progressDone();
- inline void setPackagePath(QString path) { m_packagePath = path; };
- inline QString packagePath() { return m_packagePath; }
+ inline void setPackagePath(TQString path) { m_packagePath = path; };
+ inline TQString packagePath() { return m_packagePath; }
private:
- Q_INT32 m_progressSteps, m_progressTotalSteps, m_lastProgressPerCent;
+ TQ_INT32 m_progressSteps, m_progressTotalSteps, m_lastProgressPerCent;
KisView * m_view;
- QString m_packagePath;
+ TQString m_packagePath;
};
#endif