From f0a447c8457f89852a2954637a0c8b29d40f0763 Mon Sep 17 00:00:00 2001 From: iaom Date: Tue, 21 Nov 2023 10:16:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=E9=80=82=E9=85=8D=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E5=88=97=E8=A1=A8=E8=87=AA=E5=8A=A8=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/view/best-list-view.cpp | 1 + frontend/view/result-view.cpp | 1 + 2 files changed, 2 insertions(+) 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);