summaryrefslogtreecommitdiffstats
path: root/digikam/utilities/imageeditor/editor/editortool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/utilities/imageeditor/editor/editortool.cpp')
-rw-r--r--digikam/utilities/imageeditor/editor/editortool.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/digikam/utilities/imageeditor/editor/editortool.cpp b/digikam/utilities/imageeditor/editor/editortool.cpp
index 2b4761d4..fa70b284 100644
--- a/digikam/utilities/imageeditor/editor/editortool.cpp
+++ b/digikam/utilities/imageeditor/editor/editortool.cpp
@@ -21,10 +21,10 @@
*
* ============================================================ */
-// Qt includes.
+// TQt includes.
-#include <qwidget.h>
-#include <qtimer.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
// KDE includes.
@@ -57,26 +57,26 @@ public:
settings = 0;
}
- QString helpAnchor;
- QString name;
+ TQString helpAnchor;
+ TQString name;
- QWidget *view;
+ TQWidget *view;
- QPixmap icon;
+ TQPixmap icon;
- QTimer *timer;
+ TQTimer *timer;
EditorToolSettings *settings;
};
-EditorTool::EditorTool(QObject *parent)
- : QObject(parent)
+EditorTool::EditorTool(TQObject *tqparent)
+ : TQObject(tqparent)
{
d = new EditorToolPriv;
- d->timer = new QTimer(this);
+ d->timer = new TQTimer(this);
- connect(d->timer, SIGNAL(timeout()),
- this, SLOT(slotEffect()));
+ connect(d->timer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotEffect()));
}
EditorTool::~EditorTool()
@@ -86,35 +86,35 @@ EditorTool::~EditorTool()
void EditorTool::init()
{
- QTimer::singleShot(0, this, SLOT(slotInit()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotInit()));
}
-QPixmap EditorTool::toolIcon() const
+TQPixmap EditorTool::toolIcon() const
{
return d->icon;
}
-void EditorTool::setToolIcon(const QPixmap& icon)
+void EditorTool::setToolIcon(const TQPixmap& icon)
{
d->icon = icon;
}
-QString EditorTool::toolName() const
+TQString EditorTool::toolName() const
{
return d->name;
}
-void EditorTool::setToolName(const QString& name)
+void EditorTool::setToolName(const TQString& name)
{
d->name = name;
}
-QWidget* EditorTool::toolView() const
+TQWidget* EditorTool::toolView() const
{
return d->view;
}
-void EditorTool::setToolView(QWidget *view)
+void EditorTool::setToolView(TQWidget *view)
{
d->view = view;
// Will be unblocked in slotInit()
@@ -131,23 +131,23 @@ void EditorTool::setToolSettings(EditorToolSettings *settings)
{
d->settings = settings;
- connect(d->settings, SIGNAL(signalOkClicked()),
- this, SLOT(slotOk()));
+ connect(d->settings, TQT_SIGNAL(signalOkClicked()),
+ this, TQT_SLOT(slotOk()));
- connect(d->settings, SIGNAL(signalCancelClicked()),
- this, SLOT(slotCancel()));
+ connect(d->settings, TQT_SIGNAL(signalCancelClicked()),
+ this, TQT_SLOT(slotCancel()));
- connect(d->settings, SIGNAL(signalDefaultClicked()),
- this, SLOT(slotResetSettings()));
+ connect(d->settings, TQT_SIGNAL(signalDefaultClicked()),
+ this, TQT_SLOT(slotResetSettings()));
- connect(d->settings, SIGNAL(signalSaveAsClicked()),
- this, SLOT(slotSaveAsSettings()));
+ connect(d->settings, TQT_SIGNAL(signalSaveAsClicked()),
+ this, TQT_SLOT(slotSaveAsSettings()));
- connect(d->settings, SIGNAL(signalLoadClicked()),
- this, SLOT(slotLoadSettings()));
+ connect(d->settings, TQT_SIGNAL(signalLoadClicked()),
+ this, TQT_SLOT(slotLoadSettings()));
- connect(d->settings, SIGNAL(signalTryClicked()),
- this, SLOT(slotEffect()));
+ connect(d->settings, TQT_SIGNAL(signalTryClicked()),
+ this, TQT_SLOT(slotEffect()));
// Will be unblocked in slotInit()
// This will prevent signals emit during tool init.
@@ -162,16 +162,16 @@ void EditorTool::slotInit()
d->settings->blockSignals(false);
}
-void EditorTool::setToolHelp(const QString& anchor)
+void EditorTool::setToolHelp(const TQString& anchor)
{
d->helpAnchor = anchor;
// TODO: use this anchor with editor Help menu
}
-QString EditorTool::toolHelp() const
+TQString EditorTool::toolHelp() const
{
if (d->helpAnchor.isEmpty())
- return (name() + QString(".anchor"));
+ return (name() + TQString(".anchor"));
return d->helpAnchor;
}
@@ -229,13 +229,13 @@ public:
EditorToolThreaded::RenderingMode currentRenderingMode;
- QString progressMess;
+ TQString progressMess;
DImgThreadedFilter *threadedFilter;
};
-EditorToolThreaded::EditorToolThreaded(QObject *parent)
- : EditorTool(parent)
+EditorToolThreaded::EditorToolThreaded(TQObject *tqparent)
+ : EditorTool(tqparent)
{
d = new EditorToolThreadedPriv;
}
@@ -251,7 +251,7 @@ EditorToolThreaded::RenderingMode EditorToolThreaded::renderingMode() const
return d->currentRenderingMode;
}
-void EditorToolThreaded::setProgressMessage(const QString& mess)
+void EditorToolThreaded::setProgressMessage(const TQString& mess)
{
d->progressMess = mess;
}
@@ -279,7 +279,7 @@ void EditorToolThreaded::slotResized()
filter()->stopComputation();
}
- QTimer::singleShot(0, this, SLOT(slotEffect()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotEffect()));
}
void EditorToolThreaded::slotAbort()
@@ -300,7 +300,7 @@ void EditorToolThreaded::slotAbort()
renderingFinished();
}
-void EditorToolThreaded::customEvent(QCustomEvent *e)
+void EditorToolThreaded::customEvent(TQCustomEvent *e)
{
if (!e) return;
@@ -361,15 +361,15 @@ void EditorToolThreaded::customEvent(QCustomEvent *e)
delete ed;
}
-void EditorToolThreaded::setToolView(QWidget *view)
+void EditorToolThreaded::setToolView(TQWidget *view)
{
EditorTool::setToolView(view);
if (dynamic_cast<ImageWidget*>(view) || dynamic_cast<ImageGuideWidget*>(view) ||
dynamic_cast<ImagePanelWidget*>(view))
{
- connect(view, SIGNAL(signalResized()),
- this, SLOT(slotResized()));
+ connect(view, TQT_SIGNAL(signalResized()),
+ this, TQT_SLOT(slotResized()));
}
}