ui: Don't apply stylesheet to search view every time autocompletions are set

This commit is contained in:
Eberhard Graether
2019-07-09 16:07:13 +02:00
parent 1e8791da35
commit 086c19f25e
2 changed files with 2 additions and 1 deletions
@@ -21,7 +21,9 @@ QtAutocompletionModel::~QtAutocompletionModel()
void QtAutocompletionModel::setMatchList(const std::vector<SearchMatch>& matchList)
{
size_t rowCount = std::max(m_matchList.size(), matchList.size());
m_matchList = matchList;
emit dataChanged(index(0, 0), index(rowCount - 1, 5));
}
int QtAutocompletionModel::rowCount(const QModelIndex &parent) const
-1
View File
@@ -62,7 +62,6 @@ void QtSearchView::setAutocompletionList(const std::vector<SearchMatch>& autocom
m_onQtThread([=]()
{
m_widget->setAutocompletionList(autocompletionList);
setStyleSheet();
});
}