From 2778d2d6c0821a7a1622ca4312416739525781be Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 17 May 2015 19:19:38 +0200 Subject: Add different shapes for drawing --- ellipse.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ellipse.h (limited to 'ellipse.h') diff --git a/ellipse.h b/ellipse.h new file mode 100644 index 0000000..5f3fced --- /dev/null +++ b/ellipse.h @@ -0,0 +1,18 @@ +#ifndef ELLIPSE_H +#define ELLIPSE_H + +#include "rectangle.h" + + +class Ellipse : public Rectangle +{ +public: + Ellipse(); + + // Line interface +public: + virtual bool isHit(const QPoint &clickPoint); + virtual void draw(QPainter *painter); +}; + +#endif // ELLIPSE_H -- cgit v1.2.3-70-g09d2