diff options
author | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-03-14 17:22:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 17:22:09 +0300 |
commit | 86986738f655917d740c20900812ce604511bb6a (patch) | |
tree | eded6b82912e8adb19fd5168d1b24478afc89149 /qt/search_panel.cpp | |
parent | 9dd44224ff8fc923381a143159fb9edc06f57095 (diff) | |
parent | 94112b4fc7169a24811d2a0241c45fd726cc7553 (diff) |
Merge pull request #5594 from darina/change-style-debug-command
Added debug commands for changing map style.
Diffstat (limited to 'qt/search_panel.cpp')
-rw-r--r-- | qt/search_panel.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index 4a51b27538..254ef8bf10 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -152,32 +152,6 @@ void SearchPanel::OnSearchResult(ResultsT * results) } // TODO: This code only for demonstration purposes and will be removed soon -bool SearchPanel::TryChangeMapStyleCmd(QString const & str) -{ - // Hook for shell command on change map style - MapStyle desiredStyle = MapStyleCount; - if (str == "mapstyle:dark" || str == "?dark") - desiredStyle = MapStyleDark; - else if (str == "mapstyle:light" || str == "?light") - desiredStyle = MapStyleClear; - else if (str == "mapstyle:vehicle_dark" || str == "?vdark") - desiredStyle = MapStyleVehicleDark; - else if (str == "mapstyle:vehicle_light" || str == "?vlight") - desiredStyle = MapStyleVehicleClear; - else - return false; - - // close Search panel - m_pEditor->setText(""); - parentWidget()->hide(); - - // change color scheme for the Map activity - m_pDrawWidget->SetMapStyle(desiredStyle); - - return true; -} - -// TODO: This code only for demonstration purposes and will be removed soon bool SearchPanel::TryChangeRouterCmd(QString const & str) { routing::RouterType routerType; @@ -287,8 +261,6 @@ void SearchPanel::OnSearchTextChanged(QString const & str) QString const normalized = str.normalized(QString::NormalizationForm_KC); // TODO: This code only for demonstration purposes and will be removed soon - if (TryChangeMapStyleCmd(normalized)) - return; if (TryChangeRouterCmd(normalized)) return; if (Try3dModeCmd(normalized)) |