diff options
author | Yuri Gorshenin <y@maps.me> | 2018-01-09 19:38:27 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-01-10 16:30:24 +0300 |
commit | bc3c629a851246c8330c1487f9fdb17d68e34e50 (patch) | |
tree | 79ec4e8a2c246585d9753fb1779f0b7a6326d502 /qt | |
parent | a60087aa1221a8efa63e9bcf41fc6ba380f98b3c (diff) |
[search] Refactor Results.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/search_panel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index 053629ff2f..7b8ea04972 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -113,7 +113,7 @@ void SearchPanel::OnSearchResults(uint64_t timestamp, search::Results const & re m_pTable->setCellWidget(rowCount, 1, new QLabel(strHigh)); m_pTable->setItem(rowCount, 2, CreateItem(QString::fromStdString(res.GetAddress()))); - if (res.GetResultType() == search::Result::RESULT_FEATURE) + if (res.GetResultType() == search::Result::Type::Feature) { m_pTable->setItem(rowCount, 0, CreateItem(QString::fromStdString(res.GetFeatureType()))); m_pTable->setItem(rowCount, 3, CreateItem(m_pDrawWidget->GetDistance(res).c_str())); |