equal
deleted
inserted
replaced
|
1 #include <QFile> |
|
2 |
1 #include "drawmapwidget.h" |
3 #include "drawmapwidget.h" |
2 |
4 |
3 DrawMapWidget::DrawMapWidget(QWidget *parent) : |
5 DrawMapWidget::DrawMapWidget(QWidget *parent) : |
4 QWidget(parent), |
6 QWidget(parent), |
5 ui(new Ui::DrawMapWidget) |
7 ui(new Ui::DrawMapWidget) |
6 { |
8 { |
7 ui->setupUi(this); |
9 ui->setupUi(this); |
|
10 |
|
11 m_scene = 0; |
8 } |
12 } |
9 |
13 |
10 DrawMapWidget::~DrawMapWidget() |
14 DrawMapWidget::~DrawMapWidget() |
11 { |
15 { |
12 delete ui; |
16 delete ui; |
41 { |
45 { |
42 Q_UNUSED(event); |
46 Q_UNUSED(event); |
43 |
47 |
44 resizeEvent(0); |
48 resizeEvent(0); |
45 } |
49 } |
|
50 |
|
51 void DrawMapWidget::undo() |
|
52 { |
|
53 if(m_scene) m_scene->undo(); |
|
54 } |
|
55 |
|
56 void DrawMapWidget::clear() |
|
57 { |
|
58 if(m_scene) m_scene->clear(); |
|
59 } |
|
60 |
|
61 void DrawMapWidget::save(const QString & fileName) |
|
62 { |
|
63 Q_UNUSED(fileName); |
|
64 } |
|
65 |
|
66 void DrawMapWidget::load(const QString & fileName) |
|
67 { |
|
68 Q_UNUSED(fileName); |
|
69 } |