diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-31 22:55:45 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-31 22:55:45 +0200 |
| commit | 45813562e266cf8e58ea9cb04f655bbb542a555e (patch) | |
| tree | c8864c50a1bd84ec8f2e8e527e71c9825fabf92a /rectangle.h | |
| parent | 16cdefa1a8546d23efc357010e62c7c031319e56 (diff) | |
| download | GUI_SS2015-45813562e266cf8e58ea9cb04f655bbb542a555e.tar.gz GUI_SS2015-45813562e266cf8e58ea9cb04f655bbb542a555e.zip | |
Make every line subclass editable
Diffstat (limited to 'rectangle.h')
| -rw-r--r-- | rectangle.h | 4 |
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 |
