summaryrefslogtreecommitdiffstats
path: root/line.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-17 19:19:38 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-17 19:19:38 +0200
commit2778d2d6c0821a7a1622ca4312416739525781be (patch)
tree8589cab180728a024b8bd29a01fd9a5e85e9bce4 /line.h
parent31eb4d5361026dad3107dc647ac7c3ff63f50c7b (diff)
downloadGUI_SS2015-2778d2d6c0821a7a1622ca4312416739525781be.tar.gz
GUI_SS2015-2778d2d6c0821a7a1622ca4312416739525781be.zip
Add different shapes for drawing
Diffstat (limited to 'line.h')
-rw-r--r--line.h7
1 files changed, 3 insertions, 4 deletions
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;
};