summaryrefslogtreecommitdiffstats
path: root/kolourpaint/widgets/kptoolwidgetlinewidth.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/widgets/kptoolwidgetlinewidth.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/widgets/kptoolwidgetlinewidth.cpp')
-rw-r--r--kolourpaint/widgets/kptoolwidgetlinewidth.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kolourpaint/widgets/kptoolwidgetlinewidth.cpp b/kolourpaint/widgets/kptoolwidgetlinewidth.cpp
index ded51a03..e7804149 100644
--- a/kolourpaint/widgets/kptoolwidgetlinewidth.cpp
+++ b/kolourpaint/widgets/kptoolwidgetlinewidth.cpp
@@ -36,8 +36,8 @@
static int lineWidths [] = {1, 2, 3, 5, 8};
-kpToolWidgetLineWidth::kpToolWidgetLineWidth (TQWidget *parent, const char *name)
- : kpToolWidgetBase (parent, name)
+kpToolWidgetLineWidth::kpToolWidgetLineWidth (TQWidget *tqparent, const char *name)
+ : kpToolWidgetBase (tqparent, name)
{
setInvertSelectedPixmap ();
@@ -50,24 +50,24 @@ kpToolWidgetLineWidth::kpToolWidgetLineWidth (TQWidget *parent, const char *name
{
TQPixmap pixmap ((w <= 0 ? width () : w),
(h <= 0 ? height () : h));
- pixmap.fill (Qt::white);
+ pixmap.fill (TQt::white);
- TQBitmap maskBitmap (pixmap.width (), pixmap.height ());
- maskBitmap.fill (Qt::color0/*transparent*/);
+ TQBitmap tqmaskBitmap (pixmap.width (), pixmap.height ());
+ tqmaskBitmap.fill (TQt::color0/*transparent*/);
- TQPainter painter (&pixmap), maskPainter (&maskBitmap);
- painter.setPen (Qt::black), maskPainter.setPen (Qt::color1/*opaque*/);
- painter.setBrush (Qt::black), maskPainter.setBrush (Qt::color1/*opaque*/);
+ TQPainter painter (&pixmap), tqmaskPainter (&tqmaskBitmap);
+ painter.setPen (TQt::black), tqmaskPainter.setPen (TQt::color1/*opaque*/);
+ painter.setBrush (TQt::black), tqmaskPainter.setBrush (TQt::color1/*opaque*/);
TQRect rect = TQRect (0, (pixmap.height () - lineWidths [i]) / 2,
pixmap.width (), lineWidths [i]);
- painter.drawRect (rect), maskPainter.drawRect (rect);
+ painter.drawRect (rect), tqmaskPainter.drawRect (rect);
- painter.end (), maskPainter.end ();
+ painter.end (), tqmaskPainter.end ();
- pixmap.setMask (maskBitmap);
+ pixmap.setMask (tqmaskBitmap);
addOption (pixmap, TQString::number (lineWidths [i]));
startNewOptionRow ();