diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/widgets/kptoolwidgetbrush.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-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/widgets/kptoolwidgetbrush.cpp')
-rw-r--r-- | kolourpaint/widgets/kptoolwidgetbrush.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kolourpaint/widgets/kptoolwidgetbrush.cpp b/kolourpaint/widgets/kptoolwidgetbrush.cpp index 046dc8b5..1e53891e 100644 --- a/kolourpaint/widgets/kptoolwidgetbrush.cpp +++ b/kolourpaint/widgets/kptoolwidgetbrush.cpp @@ -31,8 +31,8 @@ #include <kptoolwidgetbrush.h> -#include <qbitmap.h> -#include <qpainter.h> +#include <tqbitmap.h> +#include <tqpainter.h> #include <kdebug.h> #include <klocale.h> @@ -52,12 +52,12 @@ static int brushSize [][3] = #define BRUSH_SIZE_NUM_COLS (int (sizeof (brushSize [0]) / sizeof (brushSize [0][0]))) #define BRUSH_SIZE_NUM_ROWS (int (sizeof (brushSize) / sizeof (brushSize [0]))) -kpToolWidgetBrush::kpToolWidgetBrush (QWidget *parent, const char *name) +kpToolWidgetBrush::kpToolWidgetBrush (TQWidget *parent, const char *name) : kpToolWidgetBase (parent, name) { setInvertSelectedPixmap (); - QPixmap *pm = m_brushBitmaps; + TQPixmap *pm = m_brushBitmaps; for (int shape = 0; shape < BRUSH_SIZE_NUM_ROWS; shape++) { @@ -69,13 +69,13 @@ kpToolWidgetBrush::kpToolWidgetBrush (QWidget *parent, const char *name) (h <= 0 ? height () : h)); const int s = brushSize [shape][i]; - QRect rect; + TQRect rect; if (s >= pm->width () || s >= pm->height ()) - rect = QRect (0, 0, pm->width (), pm->height ()); + rect = TQRect (0, 0, pm->width (), pm->height ()); else { - rect = QRect ((pm->width () - s) / 2, + rect = TQRect ((pm->width () - s) / 2, (pm->height () - s) / 2, s, s); @@ -87,7 +87,7 @@ kpToolWidgetBrush::kpToolWidgetBrush (QWidget *parent, const char *name) pm->fill (Qt::white); - QPainter painter (pm); + TQPainter painter (pm); painter.setPen (Qt::black); painter.setBrush (Qt::black); @@ -127,14 +127,14 @@ kpToolWidgetBrush::~kpToolWidgetBrush () // private -QString kpToolWidgetBrush::brushName (int shape, int whichSize) +TQString kpToolWidgetBrush::brushName (int shape, int whichSize) { int s = brushSize [shape][whichSize]; if (s == 1) return i18n ("1x1"); - QString shapeName; + TQString shapeName; // sync: <brushes> switch (shape) @@ -156,12 +156,12 @@ QString kpToolWidgetBrush::brushName (int shape, int whichSize) } if (shapeName.isEmpty ()) - return QString::null; + return TQString::null; return i18n ("%1x%2 %3").arg (s).arg (s).arg (shapeName); } -QPixmap kpToolWidgetBrush::brush () const +TQPixmap kpToolWidgetBrush::brush () const { return m_brushBitmaps [selectedRow () * BRUSH_SIZE_NUM_COLS + selectedCol ()]; } |