summaryrefslogtreecommitdiffstats
path: root/rectangle.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-31 22:55:45 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-31 22:55:45 +0200
commit45813562e266cf8e58ea9cb04f655bbb542a555e (patch)
treec8864c50a1bd84ec8f2e8e527e71c9825fabf92a /rectangle.h
parent16cdefa1a8546d23efc357010e62c7c031319e56 (diff)
downloadGUI_SS2015-45813562e266cf8e58ea9cb04f655bbb542a555e.tar.gz
GUI_SS2015-45813562e266cf8e58ea9cb04f655bbb542a555e.zip
Make every line subclass editable
Diffstat (limited to 'rectangle.h')
-rw-r--r--rectangle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rectangle.h b/rectangle.h
index 5e9445d..cf29bb4 100644
--- a/rectangle.h
+++ b/rectangle.h
@@ -12,6 +12,10 @@ public:
public:
virtual bool isHit(const QPoint &clickPoint);
virtual void draw(QPainter *painter);
+ virtual void move(const QPoint &oldPoint, const QPoint &newPoint);
+
+protected:
+ QRect m_rectangle;
};
#endif // RECTANGLE_H