You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kvkbd/src/DragWidget.h

29 lines
466 B

#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