From 7a9c504720e494ee07d16a6234b77c500af4da93 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 14:50:24 +0000 Subject: Renamed class MapEntity to EntityWidget, added entity dragging. --- src/editorwindow.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/editorwindow.cc') diff --git a/src/editorwindow.cc b/src/editorwindow.cc index 3f1dce7..ec7ebe2 100644 --- a/src/editorwindow.cc +++ b/src/editorwindow.cc @@ -6,9 +6,9 @@ */ #include "editorwindow.h" +#include "entitywidget.h" #include "inistream.h" #include "mapwidget.h" -#include "mapentity.h" #include "sidebar.h" #include @@ -24,7 +24,7 @@ EditorWindow::EditorWindow(QWidget *parent) : QWidget(parent) editorwindow_mapwidget = new MapWidget(this); editorwindow_sidebar = new SideBar(this); - connect(editorwindow_mapwidget, SIGNAL(selected(MapEntity *)), editorwindow_sidebar, SLOT(setEntity(MapEntity *))); + connect(editorwindow_mapwidget, SIGNAL(selected(EntityWidget *)), editorwindow_sidebar, SLOT(setEntity(EntityWidget *))); connect(editorwindow_sidebar, SIGNAL(entityChanged()), editorwindow_mapwidget, SLOT(resizeChildren())); } @@ -53,7 +53,7 @@ bool EditorWindow::loadFile(const QString &filename) IniStream ini; - MapEntity *entity = 0; + EntityWidget *entity = 0; bool in_entity = false; float x, y, z; float f; -- cgit v1.2.3