summaryrefslogtreecommitdiffstats
path: root/src/DragWidget.cpp
diff options
context:
space:
mode:
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);
}