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/widgets/kptoolwidgeterasersize.cpp | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kolourpaint/widgets/kptoolwidgeterasersize.cpp') diff --git a/kolourpaint/widgets/kptoolwidgeterasersize.cpp b/kolourpaint/widgets/kptoolwidgeterasersize.cpp index cc58c0d1..9b9ffe8a 100644 --- a/kolourpaint/widgets/kptoolwidgeterasersize.cpp +++ b/kolourpaint/widgets/kptoolwidgeterasersize.cpp @@ -30,8 +30,8 @@ #include -#include -#include +#include +#include #include #include @@ -44,13 +44,13 @@ static int eraserSizes [] = {2, 3, 5, 9, 17, 29}; static const int numEraserSizes = int (sizeof (eraserSizes) / sizeof (eraserSizes [0])); -kpToolWidgetEraserSize::kpToolWidgetEraserSize (QWidget *parent, const char *name) +kpToolWidgetEraserSize::kpToolWidgetEraserSize (TQWidget *parent, const char *name) : kpToolWidgetBase (parent, name) { setInvertSelectedPixmap (); - m_cursorPixmaps = new QPixmap [numEraserSizes]; - QPixmap *cursorPixmap = m_cursorPixmaps; + m_cursorPixmaps = new TQPixmap [numEraserSizes]; + TQPixmap *cursorPixmap = m_cursorPixmaps; for (int i = 0; i < numEraserSizes; i++) { @@ -63,22 +63,22 @@ kpToolWidgetEraserSize::kpToolWidgetEraserSize (QWidget *parent, const char *nam cursorPixmap->fill (Qt::black); - QPixmap previewPixmap (s, s); + TQPixmap previewPixmap (s, s); if (i < 3) { // HACK: kpToolWidgetBase's layout code sucks and gives uneven spacing previewPixmap.resize ((width () - 4) / 3, 9); } - QPainter painter (&previewPixmap); - QRect rect ((previewPixmap.width () - s) / 2, (previewPixmap.height () - s) / 2, s, s); + TQPainter painter (&previewPixmap); + TQRect rect ((previewPixmap.width () - s) / 2, (previewPixmap.height () - s) / 2, s, s); painter.fillRect (rect, Qt::black); painter.end (); - QBitmap mask (previewPixmap.width (), previewPixmap.height ()); + TQBitmap mask (previewPixmap.width (), previewPixmap.height ()); mask.fill (Qt::color0/*transparent*/); - QPainter maskPainter (&mask); + TQPainter maskPainter (&mask); maskPainter.fillRect (rect, Qt::color1/*opaque*/); maskPainter.end (); @@ -104,7 +104,7 @@ int kpToolWidgetEraserSize::eraserSize () const return eraserSizes [selected ()]; } -QPixmap kpToolWidgetEraserSize::cursorPixmap (const kpColor &color) const +TQPixmap kpToolWidgetEraserSize::cursorPixmap (const kpColor &color) const { #if DEBUG_KP_TOOL_WIDGET_ERASER_SIZE kdDebug () << "kpToolWidgetEraseSize::cursorPixmap() selected=" << selected () @@ -113,7 +113,7 @@ QPixmap kpToolWidgetEraserSize::cursorPixmap (const kpColor &color) const #endif // TODO: why are we even storing m_cursorPixmaps? - QPixmap pixmap = m_cursorPixmaps [selected ()]; + TQPixmap pixmap = m_cursorPixmaps [selected ()]; if (color.isOpaque ()) pixmap.fill (color.toQColor ()); @@ -122,7 +122,7 @@ QPixmap kpToolWidgetEraserSize::cursorPixmap (const kpColor &color) const if (showBorder) { - QPainter painter (&pixmap); + TQPainter painter (&pixmap); painter.setPen (Qt::black); painter.drawRect (pixmap.rect ()); } @@ -130,13 +130,13 @@ QPixmap kpToolWidgetEraserSize::cursorPixmap (const kpColor &color) const if (color.isTransparent ()) { - QBitmap maskBitmap (pixmap.width (), pixmap.height ()); + TQBitmap maskBitmap (pixmap.width (), pixmap.height ()); maskBitmap.fill (Qt::color0/*transparent*/); if (showBorder) { - QPainter maskBitmapPainter (&maskBitmap); + TQPainter maskBitmapPainter (&maskBitmap); maskBitmapPainter.setPen (Qt::color1/*opaque*/); maskBitmapPainter.drawRect (maskBitmap.rect ()); } -- cgit v1.2.1