Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r--src/editorwindow.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc
index 446f6d7..a15ed43 100644
--- a/src/editorwindow.cc
+++ b/src/editorwindow.cc
@@ -77,6 +77,7 @@ bool EditorWindow::loadFile(const QString &filename)
in_subsection = false;
if (ini.got_section("zone")) {
+ editorwindow_zoneproperties.set_comment(ini.comment());
in_entity = false;
} else if (ini.got_section("entity")) {
@@ -116,9 +117,10 @@ bool EditorWindow::loadFile(const QString &filename)
if (in_entity) {
entity = editorwindow_mapwidget->addEntity();
entity->properties()->set_type(ini.section());
+ entity->properties()->set_comment(ini.comment());
}
if (entity && in_subsection) {
- entity->properties()->add_subsection_header(ini.section());
+ entity->properties()->add_subsection_header(ini.section(), ini.comment());
}
} else if(ini.got_key()) {
@@ -143,11 +145,11 @@ bool EditorWindow::loadFile(const QString &filename)
entity->properties()->add_info(str);
} else if (ini.got_key()) {
- entity->properties()->add_value(ini.key(), ini.value());
+ entity->properties()->add_value(ini.key(), ini.value(), ini.comment());
}
} else if (entity && in_subsection) {
- entity->properties()->add_subsection_value(ini.key(), ini.value());
+ entity->properties()->add_subsection_value(ini.key(), ini.value(), ini.comment());
} else if (ini.in_section("zone")) {
@@ -159,7 +161,7 @@ bool EditorWindow::loadFile(const QString &filename)
editorwindow_zoneproperties.add_info(str);
} else if (ini.got_key()) {
- editorwindow_zoneproperties.add_value(ini.key(), ini.value());
+ editorwindow_zoneproperties.add_value(ini.key(), ini.value(), ini.comment());
}
}