feat(frontend):适配主题列表自动高亮选中功能

This commit is contained in:
iaom 2023-11-21 10:16:47 +08:00
parent 93305d9d16
commit f0a447c845
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);