summaryrefslogtreecommitdiffstats
path: root/src/DragWidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 20:48:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 20:48:12 +0000
commite0e4bf64073ac54a136c2b42b5530687b246f24a (patch)
tree2f68d9a750bb8349928a2020d9640d63040e4af4 /src/DragWidget.cpp
parentf2c25668ebf4de0e17c6558c1d8e3051057b55fd (diff)
downloadkvkbd-e0e4bf64073ac54a136c2b42b5530687b246f24a.tar.gz
kvkbd-e0e4bf64073ac54a136c2b42b5530687b246f24a.zip
TQt4 port kvkbd
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvkbd@1239029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/DragWidget.cpp')
-rw-r--r--src/DragWidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DragWidget.cpp b/src/DragWidget.cpp
index 5a65130..c9118ad 100644
--- a/src/DragWidget.cpp
+++ b/src/DragWidget.cpp
@@ -1,8 +1,8 @@
#include "DragWidget.h"
-DragWidget::DragWidget(QWidget *parent, const char *name, WFlags f) : QWidget(parent,name,f)
+DragWidget::DragWidget(TQWidget *tqparent, const char *name, WFlags f) : TQWidget(tqparent,name,f)
{
- dragP=QPoint(0,0);
+ dragP=TQPoint(0,0);
drag=false;
}
@@ -11,25 +11,25 @@ DragWidget::~DragWidget()
}
-void DragWidget::mousePressEvent(QMouseEvent *e)
+void DragWidget::mousePressEvent(TQMouseEvent *e)
{
dragP=e->pos();
gpress=e->globalPos();
drag=true;
}
-void DragWidget::mouseReleaseEvent(QMouseEvent *)
+void DragWidget::mouseReleaseEvent(TQMouseEvent *)
{
drag=false;
}
-void DragWidget::mouseMoveEvent(QMouseEvent *e)
+void DragWidget::mouseMoveEvent(TQMouseEvent *e)
{
if (!drag) {
return;
}
- QPoint curr(e->globalPos().x()-dragP.x(),e->globalPos().y()-dragP.y());
- QWidget::move(curr);
+ TQPoint curr(e->globalPos().x()-dragP.x(),e->globalPos().y()-dragP.y());
+ TQWidget::move(curr);
}