blob: 2c9ce054f14f44c15afb203dca3ab2029aed729b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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;
virtual bool attributesToDom(QDomDocument *doc, QDomElement &e);
virtual bool attributesFromDom(const QDomElement &e);
virtual QString className();
};
#endif // RECTANGLE_H
|