Changed ints to QPoint and basic line creation
This commit is contained in:
parent
bcd01a95b3
commit
4ae8031e88
4 changed files with 58 additions and 43 deletions
|
|
@ -24,8 +24,8 @@ public:
|
|||
void removeLine(int index);
|
||||
|
||||
void setLineColor(int index, QString color);
|
||||
void setLineStartPoint(int index, int x, int y);
|
||||
void setLineEndPoint(int index, int x, int y);
|
||||
void setLineStartPoint(int index, QPoint point);
|
||||
void setLineEndPoint(int index, QPoint point);
|
||||
|
||||
int getWidth();
|
||||
int getHeight();
|
||||
|
|
@ -40,7 +40,10 @@ public:
|
|||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
|
||||
const QPoint localMousePosition(QMouseEvent* event);
|
||||
const QPoint snapToGrid(int x, int y);
|
||||
const QPoint snapToGrid(const QPoint& global);
|
||||
|
||||
double isPointOccupied(const QPoint& point);
|
||||
double pointInBounds(const QPoint& point);
|
||||
signals:
|
||||
void updatedContents();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue