diff options
Diffstat (limited to 'kolourpaint/widgets/kptoolwidgetlinewidth.cpp')
-rw-r--r-- | kolourpaint/widgets/kptoolwidgetlinewidth.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kolourpaint/widgets/kptoolwidgetlinewidth.cpp b/kolourpaint/widgets/kptoolwidgetlinewidth.cpp index 27e34ecb..ded51a03 100644 --- a/kolourpaint/widgets/kptoolwidgetlinewidth.cpp +++ b/kolourpaint/widgets/kptoolwidgetlinewidth.cpp @@ -28,15 +28,15 @@ #include <kptoolwidgetlinewidth.h> -#include <qbitmap.h> -#include <qpainter.h> +#include <tqbitmap.h> +#include <tqpainter.h> #include <klocale.h> static int lineWidths [] = {1, 2, 3, 5, 8}; -kpToolWidgetLineWidth::kpToolWidgetLineWidth (QWidget *parent, const char *name) +kpToolWidgetLineWidth::kpToolWidgetLineWidth (TQWidget *parent, const char *name) : kpToolWidgetBase (parent, name) { setInvertSelectedPixmap (); @@ -48,19 +48,19 @@ kpToolWidgetLineWidth::kpToolWidgetLineWidth (QWidget *parent, const char *name) for (int i = 0; i < numLineWidths; i++) { - QPixmap pixmap ((w <= 0 ? width () : w), + TQPixmap pixmap ((w <= 0 ? width () : w), (h <= 0 ? height () : h)); pixmap.fill (Qt::white); - QBitmap maskBitmap (pixmap.width (), pixmap.height ()); + TQBitmap maskBitmap (pixmap.width (), pixmap.height ()); maskBitmap.fill (Qt::color0/*transparent*/); - QPainter painter (&pixmap), maskPainter (&maskBitmap); + TQPainter painter (&pixmap), maskPainter (&maskBitmap); painter.setPen (Qt::black), maskPainter.setPen (Qt::color1/*opaque*/); painter.setBrush (Qt::black), maskPainter.setBrush (Qt::color1/*opaque*/); - QRect rect = QRect (0, (pixmap.height () - lineWidths [i]) / 2, + TQRect rect = TQRect (0, (pixmap.height () - lineWidths [i]) / 2, pixmap.width (), lineWidths [i]); painter.drawRect (rect), maskPainter.drawRect (rect); @@ -69,7 +69,7 @@ kpToolWidgetLineWidth::kpToolWidgetLineWidth (QWidget *parent, const char *name) pixmap.setMask (maskBitmap); - addOption (pixmap, QString::number (lineWidths [i])); + addOption (pixmap, TQString::number (lineWidths [i])); startNewOptionRow (); } |