Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qt
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2017-08-25 17:17:32 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2017-09-13 16:25:41 +0300
commit392286bd8b61d1562d3354aed566c3a61d94df66 (patch)
tree61d584a993aea81072e432c788abe703fbca9de3 /qt
parent8b362cf1805482f032f546a26b9cba825c237054 (diff)
[fix] Add switch clauses for Level in qt, and fix compilation error in diff_scheme
Diffstat (limited to 'qt')
-rw-r--r--qt/editor_dialog.cpp2
-rw-r--r--qt/place_page_dialog.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/qt/editor_dialog.cpp b/qt/editor_dialog.cpp
index 07a8663898..6f46261add 100644
--- a/qt/editor_dialog.cpp
+++ b/qt/editor_dialog.cpp
@@ -152,6 +152,7 @@ EditorDialog::EditorDialog(QWidget * parent, osm::EditableMapObject & emo)
case osm::Props::Wikipedia: v = emo.GetWikipedia(); break;
case osm::Props::Flats: v = emo.GetFlats(); break;
case osm::Props::BuildingLevels: v = emo.GetBuildingLevels(); break;
+ case osm::Props::Level: v = emo.GetLevel(); break;
}
QString const fieldName = QString::fromStdString(DebugPrint(prop));
grid->addWidget(new QLabel(fieldName), row, 0);
@@ -269,6 +270,7 @@ void EditorDialog::OnSave()
case osm::Props::Wikipedia: m_feature.SetWikipedia(v); break;
case osm::Props::Flats: m_feature.SetFlats(v); break;
case osm::Props::BuildingLevels: m_feature.SetBuildingLevels(v); break;
+ case osm::Props::Level: m_feature.SetLevel(v); break;
}
}
accept();
diff --git a/qt/place_page_dialog.cpp b/qt/place_page_dialog.cpp
index 7b3b28723c..fa56df0530 100644
--- a/qt/place_page_dialog.cpp
+++ b/qt/place_page_dialog.cpp
@@ -146,6 +146,10 @@ PlacePageDialog::PlacePageDialog(QWidget * parent, place_page::Info const & info
k = "Building Levels";
v = info.GetBuildingLevels();
break;
+ case osm::Props::Level:
+ k = "Level";
+ v = info.GetLevel();
+ break;
}
grid->addWidget(new QLabel(k), row, 0);
QLabel * label = new QLabel(QString::fromStdString(v));