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 /khotkeys/kcontrol/gesturerecorder.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 'khotkeys/kcontrol/gesturerecorder.cpp')
-rw-r--r-- | khotkeys/kcontrol/gesturerecorder.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/khotkeys/kcontrol/gesturerecorder.cpp b/khotkeys/kcontrol/gesturerecorder.cpp index d14614c77..58a177910 100644 --- a/khotkeys/kcontrol/gesturerecorder.cpp +++ b/khotkeys/kcontrol/gesturerecorder.cpp @@ -9,19 +9,19 @@ ****************************************************************************/ -#include <qcolor.h> -#include <qevent.h> +#include <tqcolor.h> +#include <tqevent.h> #include "gesturerecorder.h" namespace KHotKeys { -GestureRecorder::GestureRecorder(QWidget *parent, const char *name) - : QFrame(parent, name), _mouseButtonDown(false) +GestureRecorder::GestureRecorder(TQWidget *parent, const char *name) + : TQFrame(parent, name), _mouseButtonDown(false) { setBackgroundColor( colorGroup().base()); - setFrameStyle(QFrame::Sunken | QFrame::Panel); + setFrameStyle(TQFrame::Sunken | TQFrame::Panel); setLineWidth(2); setMidLineWidth(0); } @@ -30,34 +30,34 @@ GestureRecorder::~GestureRecorder() { } -void GestureRecorder::mousePressEvent(QMouseEvent *ev) +void GestureRecorder::mousePressEvent(TQMouseEvent *ev) { - if (ev->button() == QMouseEvent::LeftButton) + if (ev->button() == TQMouseEvent::LeftButton) { _mouseButtonDown = true; stroke.reset(); - QPoint pos = ev->pos(); + TQPoint pos = ev->pos(); stroke.record(pos.x(), pos.y()); } } -void GestureRecorder::mouseReleaseEvent(QMouseEvent *ev) +void GestureRecorder::mouseReleaseEvent(TQMouseEvent *ev) { - if ((ev->button() == QMouseEvent::LeftButton) && (_mouseButtonDown)) + if ((ev->button() == TQMouseEvent::LeftButton) && (_mouseButtonDown)) { - QPoint pos = ev->pos(); + TQPoint pos = ev->pos(); stroke.record(pos.x(), pos.y()); - QString data( stroke.translate()); + TQString data( stroke.translate()); if( !data.isEmpty()) emit recorded(data); } } -void GestureRecorder::mouseMoveEvent(QMouseEvent *ev) +void GestureRecorder::mouseMoveEvent(TQMouseEvent *ev) { if (_mouseButtonDown) { - QPoint pos = ev->pos(); + TQPoint pos = ev->pos(); stroke.record(pos.x(), pos.y()); } } |