diff --git a/frontend/view/best-list-view.cpp b/frontend/view/best-list-view.cpp index 74178a8..cccb745 100644 --- a/frontend/view/best-list-view.cpp +++ b/frontend/view/best-list-view.cpp @@ -27,6 +27,7 @@ using namespace UkuiSearch; BestListView::BestListView(QWidget *parent) : QTreeView(parent) { + this->setProperty("highlightMode", true); setStyle(ResultItemStyle::getStyle()); this->setFrameShape(QFrame::NoFrame); this->viewport()->setAttribute(Qt::WA_AcceptTouchEvents); diff --git a/frontend/view/result-view.cpp b/frontend/view/result-view.cpp index 889e544..94016d2 100644 --- a/frontend/view/result-view.cpp +++ b/frontend/view/result-view.cpp @@ -185,6 +185,7 @@ void ResultWidget::initConnections() ResultView::ResultView(const QString &plugin_id, QWidget *parent) : QTreeView(parent) { + this->setProperty("highlightMode", true); setStyle(ResultItemStyle::getStyle()); this->setFrameShape(QFrame::NoFrame); this->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);