diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/joystick/poswidget.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/joystick/poswidget.cpp')
-rw-r--r-- | kcontrol/joystick/poswidget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kcontrol/joystick/poswidget.cpp b/kcontrol/joystick/poswidget.cpp index 54e619d7a..eb24ece23 100644 --- a/kcontrol/joystick/poswidget.cpp +++ b/kcontrol/joystick/poswidget.cpp @@ -20,15 +20,15 @@ ***************************************************************************/ #include "poswidget.h" -#include <qpainter.h> +#include <tqpainter.h> #define XY_WIDTH 220 #define MARK_WIDTH 10 //----------------------------------------------------------------- -PosWidget::PosWidget(QWidget *parent, const char *name) - : QWidget(parent, name, WRepaintNoErase), x(0), y(0), trace(false) +PosWidget::PosWidget(TQWidget *parent, const char *name) + : TQWidget(parent, name, WRepaintNoErase), x(0), y(0), trace(false) { setMinimumSize(XY_WIDTH, XY_WIDTH); setMaximumSize(XY_WIDTH, XY_WIDTH); @@ -37,9 +37,9 @@ PosWidget::PosWidget(QWidget *parent, const char *name) //----------------------------------------------------------------- -void PosWidget::paintEvent(QPaintEvent *) +void PosWidget::paintEvent(TQPaintEvent *) { - QPainter paint(this); + TQPainter paint(this); paint.drawRect(0, 0, width(), height()); paint.setPen(Qt::gray); @@ -106,7 +106,7 @@ void PosWidget::showTrace(bool t) void PosWidget::eraseOld() { - QPainter paint(this); + TQPainter paint(this); //paint.eraseRect(x - MARK_WIDTH/2, y - MARK_WIDTH/2, MARK_WIDTH + 1, MARK_WIDTH + 1); |