summaryrefslogtreecommitdiffstats
path: root/kolourpaint/tools/kptoolflip.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/tools/kptoolflip.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/tools/kptoolflip.cpp')
-rw-r--r--kolourpaint/tools/kptoolflip.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kolourpaint/tools/kptoolflip.cpp b/kolourpaint/tools/kptoolflip.cpp
index 58eeb66d..146b639f 100644
--- a/kolourpaint/tools/kptoolflip.cpp
+++ b/kolourpaint/tools/kptoolflip.cpp
@@ -28,10 +28,10 @@
#include <kptoolflip.h>
-#include <qapplication.h>
-#include <qradiobutton.h>
-#include <qvbox.h>
-#include <qvbuttongroup.h>
+#include <tqapplication.h>
+#include <tqradiobutton.h>
+#include <tqvbox.h>
+#include <tqvbuttongroup.h>
#include <kdebug.h>
#include <klocale.h>
@@ -63,9 +63,9 @@ kpToolFlipCommand::~kpToolFlipCommand ()
// public virtual [base kpCommand]
-QString kpToolFlipCommand::name () const
+TQString kpToolFlipCommand::name () const
{
- QString opName;
+ TQString opName;
#if 1
@@ -80,7 +80,7 @@ QString kpToolFlipCommand::name () const
else
{
kdError () << "kpToolFlipCommand::name() not asked to flip" << endl;
- return QString::null;
+ return TQString::null;
}
#endif
@@ -120,7 +120,7 @@ void kpToolFlipCommand::flip ()
return;
- QApplication::setOverrideCursor (Qt::waitCursor);
+ TQApplication::setOverrideCursor (Qt::waitCursor);
if (m_actOnSelection)
@@ -131,13 +131,13 @@ void kpToolFlipCommand::flip ()
}
else
{
- QPixmap newPixmap = kpPixmapFX::flip (*doc->pixmap (), m_horiz, m_vert);
+ TQPixmap newPixmap = kpPixmapFX::flip (*doc->pixmap (), m_horiz, m_vert);
doc->setPixmap (newPixmap);
}
- QApplication::restoreOverrideCursor ();
+ TQApplication::restoreOverrideCursor ();
}
@@ -149,12 +149,12 @@ void kpToolFlipCommand::flip ()
bool kpToolFlipDialog::s_lastIsVerticalFlip = true;
-kpToolFlipDialog::kpToolFlipDialog (bool actOnSelection, QWidget *parent)
+kpToolFlipDialog::kpToolFlipDialog (bool actOnSelection, TQWidget *parent)
: KDialogBase (parent, 0/*name*/, true/*modal*/,
actOnSelection ? i18n ("Flip Selection") : i18n ("Flip Image"),
KDialogBase::Ok | KDialogBase::Cancel)
{
- QVBox *vbox = makeVBoxMainWidget ();
+ TQVBox *vbox = makeVBoxMainWidget ();
if (!vbox)
{
@@ -162,19 +162,19 @@ kpToolFlipDialog::kpToolFlipDialog (bool actOnSelection, QWidget *parent)
}
else
{
- QVButtonGroup *buttonGroup = new QVButtonGroup (i18n ("Direction"), vbox);
+ TQVButtonGroup *buttonGroup = new TQVButtonGroup (i18n ("Direction"), vbox);
// I'm sure vert flipping is much more common than horiz flipping so make it come first
- m_verticalFlipRadioButton = new QRadioButton (i18n ("&Vertical (upside-down)"), buttonGroup);
- m_horizontalFlipRadioButton = new QRadioButton (i18n ("&Horizontal"), buttonGroup);
+ m_verticalFlipRadioButton = new TQRadioButton (i18n ("&Vertical (upside-down)"), buttonGroup);
+ m_horizontalFlipRadioButton = new TQRadioButton (i18n ("&Horizontal"), buttonGroup);
m_verticalFlipRadioButton->setChecked (s_lastIsVerticalFlip);
m_horizontalFlipRadioButton->setChecked (!s_lastIsVerticalFlip);
- connect (m_verticalFlipRadioButton, SIGNAL (toggled (bool)),
- this, SLOT (slotIsVerticalFlipChanged ()));
- connect (m_horizontalFlipRadioButton, SIGNAL (toggled (bool)),
- this, SLOT (slotIsVerticalFlipChanged ()));
+ connect (m_verticalFlipRadioButton, TQT_SIGNAL (toggled (bool)),
+ this, TQT_SLOT (slotIsVerticalFlipChanged ()));
+ connect (m_horizontalFlipRadioButton, TQT_SIGNAL (toggled (bool)),
+ this, TQT_SLOT (slotIsVerticalFlipChanged ()));
}
}