-
Notifications
You must be signed in to change notification settings - Fork 1
/
cross.h
52 lines (38 loc) · 1.11 KB
/
cross.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef CROSS_H
#define CROSS_H
#include <QGraphicsItem>
#include <QStyleOptionGraphicsItem>
class Cross : public QGraphicsItem
{
public:
Cross(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
MainWindow* window;
MyGraphicsScene* graphicsScene;
View* view;
QRectF boundingRect() const;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* item, QWidget* widget);
private:
};
class CrossX : public QGraphicsItem
{
public:
CrossX(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
MainWindow* window;
MyGraphicsScene* graphicsScene;
View* view;
QRectF boundingRect() const;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* item, QWidget* widget);
private:
};
class CrossY : public QGraphicsItem
{
public:
CrossY(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
MainWindow* window;
MyGraphicsScene* graphicsScene;
View* view;
QRectF boundingRect() const;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* item, QWidget* widget);
private:
};
#endif