Changeset View
Changeset View
Standalone View
Standalone View
src/gui/views/view2d.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 70 | public slots: | |||
---|---|---|---|---|---|
82 | * Value -1 to -N: delete the cage-graphics. | 82 | * Value -1 to -N: delete the cage-graphics. | ||
83 | * Value 0: invalid. | 83 | * Value 0: invalid. | ||
84 | */ | 84 | */ | ||
85 | void updateCage (int cageNumP1, bool drawLabel); | 85 | void updateCage (int cageNumP1, bool drawLabel); | ||
86 | signals: | 86 | signals: | ||
87 | void valueSelected(int val); | 87 | void valueSelected(int val); | ||
88 | protected: | 88 | protected: | ||
89 | void wheelEvent(QGraphicsSceneWheelEvent* event) override; | 89 | void wheelEvent(QGraphicsSceneWheelEvent* event) override; | ||
90 | bool eventFilter(QObject* watched, QEvent* event) override; | ||||
90 | private: | 91 | private: | ||
91 | QGraphicsPixmapItem* m_background; | 92 | QGraphicsPixmapItem* m_background; | ||
92 | QGraphicsItem* m_groupLayer; | 93 | QGraphicsItem* m_groupLayer; | ||
93 | QGraphicsItem* m_cellLayer; | 94 | QGraphicsItem* m_cellLayer; | ||
94 | QVector<GroupGraphicsItem*> m_groups; | 95 | QVector<GroupGraphicsItem*> m_groups; | ||
95 | QVector<CellGraphicsItem*> m_cells; | 96 | QVector<CellGraphicsItem*> m_cells; | ||
96 | QGraphicsPixmapItem* m_cursor; | 97 | QGraphicsPixmapItem* m_cursor; | ||
97 | Game m_game; | 98 | Game m_game; | ||
Show All 30 Lines |