feat(frontend):适配主题列表自动高亮选中功能
This commit is contained in:
parent
93305d9d16
commit
f0a447c845
|
@ -27,6 +27,7 @@
|
||||||
using namespace UkuiSearch;
|
using namespace UkuiSearch;
|
||||||
BestListView::BestListView(QWidget *parent) : QTreeView(parent)
|
BestListView::BestListView(QWidget *parent) : QTreeView(parent)
|
||||||
{
|
{
|
||||||
|
this->setProperty("highlightMode", true);
|
||||||
setStyle(ResultItemStyle::getStyle());
|
setStyle(ResultItemStyle::getStyle());
|
||||||
this->setFrameShape(QFrame::NoFrame);
|
this->setFrameShape(QFrame::NoFrame);
|
||||||
this->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
|
this->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
|
||||||
|
|
|
@ -185,6 +185,7 @@ void ResultWidget::initConnections()
|
||||||
|
|
||||||
ResultView::ResultView(const QString &plugin_id, QWidget *parent) : QTreeView(parent)
|
ResultView::ResultView(const QString &plugin_id, QWidget *parent) : QTreeView(parent)
|
||||||
{
|
{
|
||||||
|
this->setProperty("highlightMode", true);
|
||||||
setStyle(ResultItemStyle::getStyle());
|
setStyle(ResultItemStyle::getStyle());
|
||||||
this->setFrameShape(QFrame::NoFrame);
|
this->setFrameShape(QFrame::NoFrame);
|
||||||
this->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
|
this->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
|
||||||
|
|
Loading…
Reference in New Issue