diff options
author | Yuri Gorshenin <y@maps.me> | 2016-08-03 13:53:12 +0300 |
---|---|---|
committer | Yuri Gorshenin <y@maps.me> | 2016-08-12 18:35:01 +0300 |
commit | b72a10679c823feab5a1789deaabd05618f050ed (patch) | |
tree | 86f8167b3ac2af31f506121dcc6dd4918dd9bec5 /qt/draw_widget.cpp | |
parent | ca03f82cad913422aaf67fb97b85c5fc542c0f07 (diff) |
[search] Refactored search API.
Diffstat (limited to 'qt/draw_widget.cpp')
-rw-r--r-- | qt/draw_widget.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp index ba54ad127b..16a8c45380 100644 --- a/qt/draw_widget.cpp +++ b/qt/draw_widget.cpp @@ -458,13 +458,9 @@ void DrawWidget::wheelEvent(QWheelEvent * e) m_framework->Scale(exp(e->delta() / 360.0), m2::PointD(L2D(e->x()), L2D(e->y())), false); } -bool DrawWidget::Search(search::SearchParams params) +bool DrawWidget::Search(search::EverywhereSearchParams const & params) { - double lat, lon; - if (m_framework->GetCurrentPosition(lat, lon)) - params.SetPosition(lat, lon); - - return m_framework->Search(params); + return m_framework->SearchEverywhere(params); } string DrawWidget::GetDistance(search::Result const & res) const |