Move selection rectangle from widget to scene

This commit is contained in:
G.K.MacGregor
2021-04-26 22:08:28 +01:00
parent 8bc0c2c886
commit 5739474957
4 changed files with 27 additions and 7 deletions

View File

@@ -110,6 +110,7 @@ public:
public slots:
void updateCursor();
void updateSelection();
void toggleGrid(bool);
void setFullScreenColour(const QColor &);
void setFullRowColour(int, const QColor &);
@@ -118,7 +119,7 @@ private:
QGraphicsRectItem *m_fullScreenTopRectItem, *m_fullScreenBottomRectItem;
QGraphicsRectItem *m_fullRowLeftRectItem[25], *m_fullRowRightRectItem[25];
QGraphicsProxyWidget *m_levelOneProxyWidget;
QGraphicsRectItem *m_cursorRectItem;
QGraphicsRectItem *m_cursorRectItem, *m_selectionRectItem;
QGraphicsItemGroup *m_mainGridItemGroup, *m_sidePanelGridItemGroup[32];
bool m_grid, m_sidePanelGridNeeded[32];
};