summaryrefslogtreecommitdiffstats
path: root/src/DragWidget.h
blob: 9d24583b94276360a552b9e5a0ce06e372418704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef KVKBDDRAGWIDGET_H
#define KVKBDDRAGWIDGET_H
#include <qwidget.h>
#include <qpoint.h>
#include <qevent.h>

class DragWidget : public QWidget
{
Q_OBJECT
public:
	DragWidget(QWidget *parent=0, const char *name="", WFlags f=0);
	virtual ~DragWidget();

private:
	
	bool drag;

protected:
	void mouseMoveEvent ( QMouseEvent * e );
	void mousePressEvent ( QMouseEvent * e );
	void mouseReleaseEvent ( QMouseEvent * e );
	QPoint dragP;
	QPoint gpress;

};

#endif