1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef RECTANGLE_H #define RECTANGLE_H #include "line.h" class Rectangle : public Line { public: Rectangle(); // Line interface public: virtual bool isHit(const QPoint &clickPoint); virtual void draw(QPainter *painter); }; #endif // RECTANGLE_H