From 45813562e266cf8e58ea9cb04f655bbb542a555e Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 31 May 2015 22:55:45 +0200 Subject: Make every line subclass editable --- rectangle.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rectangle.h') 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 -- cgit v1.2.3-70-g09d2