From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolourpaint/pixmapfx/kpcoloreffect.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kolourpaint/pixmapfx/kpcoloreffect.cpp') 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 -#include -#include +#include +#include #include #include @@ -40,7 +40,7 @@ #include -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; } -- cgit v1.2.1