diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-03-20 10:59:36 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:04 +0300 |
commit | dae5129316eee833c4c024721223e0eff2233dfc (patch) | |
tree | 2592ec504384ad3f5ffc22753f7d4edb7630cf8e /qt/search_panel.cpp | |
parent | c4522f38b6808bc1ebc37aefe372a00dff210662 (diff) |
[iOS] Bookmark logic changed
Review fixes
Review Fix
Review Fix
Diffstat (limited to 'qt/search_panel.cpp')
-rw-r--r-- | qt/search_panel.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index 5e07b2e357..8469ed08e4 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -133,7 +133,7 @@ void SearchPanel::OnSearchResult(ResultsT * res) m_results.clear(); Framework & frm = m_pDrawWidget->GetFramework(); - frm.DeleteBmCategory(SEARCH_CATEGORY); + frm.AdditionalPoiLayerClear(); for (ResultsT::IterT i = res->Begin(); i != res->End(); ++i) { @@ -141,7 +141,6 @@ void SearchPanel::OnSearchResult(ResultsT * res) int const rowCount = m_pTable->rowCount(); m_pTable->insertRow(rowCount); - m_pTable->setItem(rowCount, 1, create_item(QString::fromUtf8(e.GetString()))); m_pTable->setItem(rowCount, 2, create_item(QString::fromUtf8(e.GetRegionString()))); @@ -149,7 +148,7 @@ void SearchPanel::OnSearchResult(ResultsT * res) { // For debug purposes: add bookmarks for search results Bookmark bm(e.GetFeatureCenter(), e.GetString(), "placemark-red"); - frm.AddBookmark(SEARCH_CATEGORY, bm); + frm.AdditionalPoiLayerAddPoi(bm); m_pTable->setItem(rowCount, 0, create_item(QString::fromUtf8(e.GetFeatureType()))); @@ -225,7 +224,7 @@ void SearchPanel::showEvent(QShowEvent *) void SearchPanel::hideEvent(QHideEvent *) { - m_pDrawWidget->GetFramework().DeleteBmCategory(SEARCH_CATEGORY); + m_pDrawWidget->GetFramework().AdditionalPoiLayerClear(); disconnect(m_pDrawWidget, SIGNAL(ViewportChanged()), this, SLOT(OnViewportChanged())); |