123456789101112131415161718192021222324252627282930313233 |
- #ifndef GUI_H
- #define GUI_H
- #include <QMainWindow>
- #include <QGraphicsScene>
- #include <QMouseEvent>
- namespace Ui {
- class GUI;
- }
- class GUI : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit GUI(QWidget *parent = 0);
- ~GUI();
- QWidget* mainContentScene();
- private:
- Ui::GUI *ui_;
- protected:
- void mouseMoveEvent( QMouseEvent* e );
- void mousePressEvent( QMouseEvent* e );
- void mouseReleaseEvent( QMouseEvent* e );
- private:
- int dx_;
- int dy_;
- };
- #endif // GUI_H
|