From 392286bd8b61d1562d3354aed566c3a61d94df66 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Fri, 25 Aug 2017 17:17:32 +0300 Subject: [fix] Add switch clauses for Level in qt, and fix compilation error in diff_scheme --- qt/editor_dialog.cpp | 2 ++ qt/place_page_dialog.cpp | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'qt') 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)); -- cgit v1.2.3