diff options
author | vng <viktor.govako@gmail.com> | 2012-03-21 18:27:37 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:36:56 +0300 |
commit | c0d4b2c0ea3aa9535b4512bb94173ce3c533aa75 (patch) | |
tree | 0f5b4b5af164b22961845af03feb40ec5eadb41d /qt | |
parent | fc27fb88ec6956a8b9f0175c7228f9a30fb98c02 (diff) |
Simple bookmarks routine.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/search_panel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index ed293c78c5..fdaadcd6c0 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -123,6 +123,9 @@ void SearchPanel::OnSearchResult(ResultsT * res, int queryId) m_pTable->setRowCount(0); m_results.clear(); + Framework & frm = m_pDrawWidget->GetFramework(); + frm.ClearBookmarks(); + for (ResultsT::IterT i = res->Begin(); i != res->End(); ++i) { ResultT const & e = *i; @@ -135,6 +138,8 @@ void SearchPanel::OnSearchResult(ResultsT * res, int queryId) if (e.GetResultType() == ResultT::RESULT_FEATURE) { + frm.AddBookmark(e.GetFeatureCenter(), e.GetString()); + m_pTable->setItem(rowCount, 0, create_item(QString::fromUtf8(e.GetFeatureType()))); |