diff options
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 |
