diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-26 23:04:53 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-26 23:04:53 +0000 |
commit | 802fe3321306a81e227584e34087b477110ffdb5 (patch) | |
tree | 3f1c93bd6cd1a0293500f24f4aee42ba74c9c9da /src/editorwindow.cc | |
parent | 06324807359ab34bf1742049ea8b7794d3be126e (diff) |
Select newly created entities,
remember entity type updates,
rearranged sidebar widget construction code.
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r-- | src/editorwindow.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc index f54bd6e..88a309b 100644 --- a/src/editorwindow.cc +++ b/src/editorwindow.cc @@ -41,13 +41,6 @@ QSize EditorWindow::sizeHint () const void EditorWindow::resizeEvent (QResizeEvent *event) { - /* - editorwindow_sidebar->resize(256, height()); - editorwindow_mapwidget->setGeometry( - editorwindow_sidebar->width(), 0, - width() - editorwindow_sidebar->width(), height() - ); - */ editorwindow_splitter->resize(width(), height()); } @@ -245,7 +238,7 @@ bool EditorWindow::saveFile(const QString &filename) void EditorWindow::addEntity() { EntityWidget *entitywidget = editorwindow_mapwidget->addEntity(); - entitywidget->properties()->set_type("entity"); + editorwindow_mapwidget->select(entitywidget); } void EditorWindow::duplicateSelected() |