summaryrefslogtreecommitdiffstats
path: root/kolourpaint/tools/kptoolfloodfill.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/kptoolfloodfill.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/kptoolfloodfill.cpp')
-rw-r--r--kolourpaint/tools/kptoolfloodfill.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kolourpaint/tools/kptoolfloodfill.cpp b/kolourpaint/tools/kptoolfloodfill.cpp
index bb17d701..518820ba 100644
--- a/kolourpaint/tools/kptoolfloodfill.cpp
+++ b/kolourpaint/tools/kptoolfloodfill.cpp
@@ -31,10 +31,10 @@
#include <kptoolfloodfill.h>
-#include <qapplication.h>
-#include <qcursor.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include <kdebug.h>
#include <klocale.h>
@@ -63,7 +63,7 @@ kpToolFloodFill::~kpToolFloodFill ()
{
}
-QString kpToolFloodFill::haventBegunDrawUserMessage () const
+TQString kpToolFloodFill::haventBegunDrawUserMessage () const
{
return i18n ("Click to fill a region.");
}
@@ -80,7 +80,7 @@ void kpToolFloodFill::beginDraw ()
kdDebug () << "kpToolFloodFill::beginDraw()" << endl;
#endif
- QApplication::setOverrideCursor (Qt::waitCursor);
+ TQApplication::setOverrideCursor (Qt::waitCursor);
// Flood Fill is an expensive CPU operation so we only fill at a
// mouse click (beginDraw ()), not on mouse move (virtually draw())
@@ -112,13 +112,13 @@ void kpToolFloodFill::beginDraw ()
kdError () << "kpToolFloodFill::beginDraw() could not prepareColorToChange!" << endl;
}
- QApplication::restoreOverrideCursor ();
+ TQApplication::restoreOverrideCursor ();
setUserMessage (cancelUserMessage ());
}
// virtual
-void kpToolFloodFill::draw (const QPoint &thisPoint, const QPoint &, const QRect &)
+void kpToolFloodFill::draw (const TQPoint &thisPoint, const TQPoint &, const TQRect &)
{
setUserShapePoints (thisPoint);
}
@@ -127,7 +127,7 @@ void kpToolFloodFill::draw (const QPoint &thisPoint, const QPoint &, const QRect
void kpToolFloodFill::cancelShape ()
{
#if 0
- endDraw (QPoint (), QRect ());
+ endDraw (TQPoint (), TQRect ());
mainWindow ()->commandHistory ()->undo ();
#else
m_currentCommand->unexecute ();
@@ -145,7 +145,7 @@ void kpToolFloodFill::releasedAllButtons ()
}
// virtual
-void kpToolFloodFill::endDraw (const QPoint &, const QRect &)
+void kpToolFloodFill::endDraw (const TQPoint &, const TQRect &)
{
mainWindow ()->commandHistory ()->addCommand (m_currentCommand,
false /* no exec - we already did it up there */);
@@ -175,7 +175,7 @@ kpToolFloodFillCommand::~kpToolFloodFillCommand ()
// public virtual [base kpCommand]
-QString kpToolFloodFillCommand::name () const
+TQString kpToolFloodFillCommand::name () const
{
return i18n ("Flood Fill");
}
@@ -211,17 +211,17 @@ void kpToolFloodFillCommand::execute ()
}
else
{
- QRect rect = kpFloodFill::boundingRect ();
+ TQRect rect = kpFloodFill::boundingRect ();
if (rect.isValid ())
{
- QApplication::setOverrideCursor (QCursor::waitCursor);
+ TQApplication::setOverrideCursor (TQCursor::waitCursor);
m_oldPixmap = doc->getPixmapAt (rect);
kpFloodFill::fill ();
doc->slotContentsChanged (rect);
- QApplication::restoreOverrideCursor ();
+ TQApplication::restoreOverrideCursor ();
}
else
{
@@ -246,7 +246,7 @@ void kpToolFloodFillCommand::unexecute ()
}
else
{
- QRect rect = kpFloodFill::boundingRect ();
+ TQRect rect = kpFloodFill::boundingRect ();
if (rect.isValid ())
{
doc->setPixmapAt (m_oldPixmap, rect.topLeft ());