26 #include <QMouseEvent> 48 BarFrame(QWidget* parent) : QFrame(parent), moving(
false) {}
50 virtual void mousePressEvent(QMouseEvent *event);
51 virtual void mouseReleaseEvent(QMouseEvent *event);
52 virtual void mouseMoveEvent(QMouseEvent *event);
55 void movedTo(QPoint newPosition);
68 virtual void mousePressEvent(QMouseEvent *event) {
69 mousePos =
event->pos();
71 virtual void mouseMoveEvent(QMouseEvent *event);
75 #endif // _DIALOG_HPP_ A title bar control used in windows derived from StelDialog.