#ifndef KVKBDDRAGWIDGET_H #define KVKBDDRAGWIDGET_H #include #include #include class DragWidget : public TQWidget { Q_OBJECT public: DragWidget(TQWidget *parent=0, const char *name="", WFlags f=0); virtual ~DragWidget(); void setLocked(bool mode); const bool isLocked() const; private: bool drag; protected: void mouseMoveEvent ( TQMouseEvent * e ); void mousePressEvent ( TQMouseEvent * e ); void mouseReleaseEvent ( TQMouseEvent * e ); TQPoint dragP; TQPoint gpress; bool locked; }; #endif