1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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