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.
|
|
|
#ifndef KVKBDDRAGWIDGET_H
|
|
|
|
#define KVKBDDRAGWIDGET_H
|
|
|
|
#include <tqwidget.h>
|
|
|
|
#include <tqpoint.h>
|
|
|
|
#include <tqevent.h>
|
|
|
|
|
|
|
|
class DragWidget : public TQWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
DragWidget(TQWidget *parent=0, const char *name="", WFlags f=0);
|
|
|
|
virtual ~DragWidget();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
bool drag;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void mouseMoveEvent ( TQMouseEvent * e );
|
|
|
|
void mousePressEvent ( TQMouseEvent * e );
|
|
|
|
void mouseReleaseEvent ( TQMouseEvent * e );
|
|
|
|
TQPoint dragP;
|
|
|
|
TQPoint gpress;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|