summaryrefslogtreecommitdiffstats
path: root/rectangle.h
blob: cf29bb447e89e36a03c2a851d275f4d02f670e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);
    virtual void move(const QPoint &oldPoint, const QPoint &newPoint);

protected:
    QRect m_rectangle;
};

#endif // RECTANGLE_H