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
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-11-21 22:12:41 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:05 +0300
commitdc21bffc6732ceeff9540882da7766cd8f367705 (patch)
tree58cd45030f3179421cb7f4c085b0eea48de816f8 /qt/search_panel.cpp
parentc408080c2712a08108368b8e981c81d006ab4fab (diff)
Add search settings.
Diffstat (limited to 'qt/search_panel.cpp')
-rw-r--r--qt/search_panel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp
index e4b37b9c88..f0419d97be 100644
--- a/qt/search_panel.cpp
+++ b/qt/search_panel.cpp
@@ -57,6 +57,8 @@ SearchPanel::SearchPanel(DrawWidget * drawWidget, QWidget * parent)
setFocusPolicy(Qt::StrongFocus);
setFocusProxy(m_pEditor);
+
+ m_params.m_callback = bind(&SearchPanel::SearchResultThreadFunc, this, _1);
}
void SearchPanel::SearchResultThreadFunc(ResultsT const & result)
@@ -180,8 +182,6 @@ void SearchPanel::OnSearchTextChanged(QString const & str)
//if (!normalized.isEmpty())
{
m_params.m_query = normalized.toUtf8().constData();
- m_params.m_callback = bind(&SearchPanel::SearchResultThreadFunc, this, _1);
-
if (m_pDrawWidget->Search(m_params))
{
// show busy indicator