summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/gesturerecorder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khotkeys/kcontrol/gesturerecorder.cpp')
-rw-r--r--khotkeys/kcontrol/gesturerecorder.cpp28
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());
}
}