aboutsummaryrefslogtreecommitdiff
path: root/Source/MapEditor/mainwindow.h
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-23 13:22:17 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-23 13:22:17 +0100
commita923f153f906144de599024148fc868e234d06cd (patch)
tree4bcfe4e48b5599118e01060c130d981948be0174 /Source/MapEditor/mainwindow.h
parent42ea5901dec867b31a3172cdea2a643d03256b7d (diff)
downloadairport-a923f153f906144de599024148fc868e234d06cd.tar.gz
gscene and ui are now allocated on the stack and not the heap.
Diffstat (limited to 'Source/MapEditor/mainwindow.h')
-rw-r--r--Source/MapEditor/mainwindow.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/MapEditor/mainwindow.h b/Source/MapEditor/mainwindow.h
index 69254fe..5d4cfe5 100644
--- a/Source/MapEditor/mainwindow.h
+++ b/Source/MapEditor/mainwindow.h
@@ -32,13 +32,15 @@ public:
void closeEvent(QCloseEvent*);
private:
- Ui::MainWindow *ui;
bool checkFile(QFile &f, QFile::OpenModeFlag flags = QFile::ReadOnly);
void appSettings(void);
void loadTilesetData(void);
+ void loadBuildingData(void);
void parseMapData(QDataStream &ds, const QPixmap &tileSet);
+
+ Ui::MainWindow ui;
QString _last_dir;
- MyGraphicsScene *gscene;
+ MyGraphicsScene gscene;
int level_size;
QByteArray map_buffer;
int selected_item;