summaryrefslogtreecommitdiffstats
path: root/src/DragWidget.h
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.h
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.h')
-rw-r--r--src/DragWidget.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/DragWidget.h b/src/DragWidget.h
index 9d24583..8b797b3 100644
--- a/src/DragWidget.h
+++ b/src/DragWidget.h
@@ -1,14 +1,15 @@
#ifndef KVKBDDRAGWIDGET_H
#define KVKBDDRAGWIDGET_H
-#include <qwidget.h>
-#include <qpoint.h>
-#include <qevent.h>
+#include <tqwidget.h>
+#include <tqpoint.h>
+#include <tqevent.h>
-class DragWidget : public QWidget
+class DragWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- DragWidget(QWidget *parent=0, const char *name="", WFlags f=0);
+ DragWidget(TQWidget *tqparent=0, const char *name="", WFlags f=0);
virtual ~DragWidget();
private:
@@ -16,11 +17,11 @@ private:
bool drag;
protected:
- void mouseMoveEvent ( QMouseEvent * e );
- void mousePressEvent ( QMouseEvent * e );
- void mouseReleaseEvent ( QMouseEvent * e );
- QPoint dragP;
- QPoint gpress;
+ void mouseMoveEvent ( TQMouseEvent * e );
+ void mousePressEvent ( TQMouseEvent * e );
+ void mouseReleaseEvent ( TQMouseEvent * e );
+ TQPoint dragP;
+ TQPoint gpress;
};