summaryrefslogtreecommitdiffstats
path: root/kolourpaint/pixmapfx/kpcoloreffect.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/pixmapfx/kpcoloreffect.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/pixmapfx/kpcoloreffect.cpp')
-rw-r--r--kolourpaint/pixmapfx/kpcoloreffect.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kolourpaint/pixmapfx/kpcoloreffect.cpp b/kolourpaint/pixmapfx/kpcoloreffect.cpp
index 1660c1fa..b0e04496 100644
--- a/kolourpaint/pixmapfx/kpcoloreffect.cpp
+++ b/kolourpaint/pixmapfx/kpcoloreffect.cpp
@@ -28,8 +28,8 @@
#include <kpcoloreffect.h>
-#include <qapplication.h>
-#include <qpixmap.h>
+#include <tqapplication.h>
+#include <tqpixmap.h>
#include <kdialog.h>
#include <klocale.h>
@@ -40,7 +40,7 @@
#include <kpselection.h>
-kpColorEffectCommand::kpColorEffectCommand (const QString &name,
+kpColorEffectCommand::kpColorEffectCommand (const TQString &name,
bool actOnSelection,
kpMainWindow *mainWindow)
: kpCommand (mainWindow),
@@ -57,7 +57,7 @@ kpColorEffectCommand::~kpColorEffectCommand ()
// public virtual [base kpCommand]
-QString kpColorEffectCommand::name () const
+TQString kpColorEffectCommand::name () const
{
if (m_actOnSelection)
return i18n ("Selection: %1").arg (m_name);
@@ -80,24 +80,24 @@ void kpColorEffectCommand::execute ()
if (!doc)
return;
- QApplication::setOverrideCursor (Qt::waitCursor);
+ TQApplication::setOverrideCursor (Qt::waitCursor);
- const QPixmap oldPixmap = *doc->pixmap (m_actOnSelection);
+ const TQPixmap oldPixmap = *doc->pixmap (m_actOnSelection);
if (!isInvertible ())
{
- m_oldPixmapPtr = new QPixmap ();
+ m_oldPixmapPtr = new TQPixmap ();
*m_oldPixmapPtr = oldPixmap;
}
- QPixmap newPixmap = /*pure virtual*/applyColorEffect (oldPixmap);
+ TQPixmap newPixmap = /*pure virtual*/applyColorEffect (oldPixmap);
doc->setPixmap (m_actOnSelection, newPixmap);
- QApplication::restoreOverrideCursor ();
+ TQApplication::restoreOverrideCursor ();
}
// public virtual [base kpCommand]
@@ -107,10 +107,10 @@ void kpColorEffectCommand::unexecute ()
if (!doc)
return;
- QApplication::setOverrideCursor (Qt::waitCursor);
+ TQApplication::setOverrideCursor (Qt::waitCursor);
- QPixmap newPixmap;
+ TQPixmap newPixmap;
if (!isInvertible ())
{
@@ -127,14 +127,14 @@ void kpColorEffectCommand::unexecute ()
delete m_oldPixmapPtr; m_oldPixmapPtr = 0;
- QApplication::restoreOverrideCursor ();
+ TQApplication::restoreOverrideCursor ();
}
kpColorEffectWidget::kpColorEffectWidget (bool actOnSelection,
kpMainWindow *mainWindow,
- QWidget *parent, const char *name)
- : QWidget (parent, name),
+ TQWidget *parent, const char *name)
+ : TQWidget (parent, name),
m_actOnSelection (actOnSelection),
m_mainWindow (mainWindow)
{
@@ -146,9 +146,9 @@ kpColorEffectWidget::~kpColorEffectWidget ()
// public
-QString kpColorEffectWidget::caption () const
+TQString kpColorEffectWidget::caption () const
{
- return QString::null;
+ return TQString::null;
}