From 2778d2d6c0821a7a1622ca4312416739525781be Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 17 May 2015 19:19:38 +0200 Subject: Add different shapes for drawing --- line.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'line.h') diff --git a/line.h b/line.h index 745f653..41b02ad 100644 --- a/line.h +++ b/line.h @@ -9,13 +9,12 @@ class Line : public QLine { public: Line(); - Line(const Line &other); - bool isHit(const QPoint & clickPoint); + virtual bool isHit(const QPoint & clickPoint); void setSelected(bool selected); - void draw(QPainter * painter); + virtual void draw(QPainter * painter); -private: +protected: bool m_selected; }; -- cgit v1.2.3-70-g09d2