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:
authorYuri Gorshenin <y@maps.me>2016-08-02 14:06:14 +0300
committerYuri Gorshenin <y@maps.me>2016-08-03 13:11:06 +0300
commit0badc084a1043e06e429c7cd66176462c4fa33ab (patch)
tree1460f4d608bbc707e0225c6d7241e66b97774eaa /qt
parent1e6dd75476400e45ab8bf49ba7bd4c7a65cde368 (diff)
[search][ui] Implemented hotels classifier.
Diffstat (limited to 'qt')
-rw-r--r--qt/search_panel.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp
index 85c6476b65..65095e57b1 100644
--- a/qt/search_panel.cpp
+++ b/qt/search_panel.cpp
@@ -249,12 +249,18 @@ bool SearchPanel::TryDisplacementModeCmd(QString const & str)
if (!isDefaultDisplacementMode && !isHotelDisplacementMode)
return false;
-
+
if (isDefaultDisplacementMode)
- m_pDrawWidget->GetFramework().SetDisplacementMode(dp::displacement::kDefaultMode);
+ {
+ m_pDrawWidget->GetFramework().SetDisplacementMode(DisplacementModeManager::SLOT_DEBUG,
+ false /* show */);
+ }
else if (isHotelDisplacementMode)
- m_pDrawWidget->GetFramework().SetDisplacementMode(dp::displacement::kHotelMode);
-
+ {
+ m_pDrawWidget->GetFramework().SetDisplacementMode(DisplacementModeManager::SLOT_DEBUG,
+ true /* show */);
+ }
+
return true;
}