summaryrefslogtreecommitdiffstats
path: root/kolourpaint/tools/kptoolairspray.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kolourpaint/tools/kptoolairspray.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/tools/kptoolairspray.cpp')
-rw-r--r--kolourpaint/tools/kptoolairspray.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kolourpaint/tools/kptoolairspray.cpp b/kolourpaint/tools/kptoolairspray.cpp
index 7f9a2b04..022c534d 100644
--- a/kolourpaint/tools/kptoolairspray.cpp
+++ b/kolourpaint/tools/kptoolairspray.cpp
@@ -60,7 +60,7 @@
kpToolAirSpray::kpToolAirSpray (kpMainWindow *mainWindow)
: kpTool (i18n ("Spraycan"), i18n ("Sprays graffiti"),
- Qt::Key_Y,
+ TQt::Key_Y,
mainWindow, "tool_spraycan"),
m_currentCommand (0)
{
@@ -312,21 +312,21 @@ void kpToolAirSprayCommand::addPoints (const TQPointArray &points)
#endif
TQPixmap pixmap = document ()->getPixmapAt (docRect);
- TQBitmap mask;
+ TQBitmap tqmask;
- TQPainter painter, maskPainter;
+ TQPainter painter, tqmaskPainter;
if (m_color.isOpaque ())
{
painter.begin (&pixmap);
- painter.setPen (m_color.toQColor ());
+ painter.setPen (m_color.toTQColor ());
}
- if (pixmap.mask () || m_color.isTransparent ())
+ if (pixmap.tqmask () || m_color.isTransparent ())
{
- mask = kpPixmapFX::getNonNullMask (pixmap);
- maskPainter.begin (&mask);
- maskPainter.setPen (m_color.maskColor ());
+ tqmask = kpPixmapFX::getNonNullMask (pixmap);
+ tqmaskPainter.begin (&tqmask);
+ tqmaskPainter.setPen (m_color.tqmaskColor ());
}
for (int i = 0; i < (int) points.count (); i++)
@@ -337,18 +337,18 @@ void kpToolAirSprayCommand::addPoints (const TQPointArray &points)
if (painter.isActive ())
painter.drawPoint (pt);
- if (maskPainter.isActive ())
- maskPainter.drawPoint (pt);
+ if (tqmaskPainter.isActive ())
+ tqmaskPainter.drawPoint (pt);
}
- if (maskPainter.isActive ())
- maskPainter.end ();
+ if (tqmaskPainter.isActive ())
+ tqmaskPainter.end ();
if (painter.isActive ())
painter.end ();
- if (!mask.isNull ())
- pixmap.setMask (mask);
+ if (!tqmask.isNull ())
+ pixmap.setMask (tqmask);
viewManager ()->setFastUpdates ();
document ()->setPixmapAt (pixmap, docRect.topLeft ());