Merge branch 'ukss-dev' into 'ukss-dev'

修改滚动条样式。

See merge request kylin-desktop/ukui-search!326
This commit is contained in:
纪笑旭 2022-06-06 07:11:56 +00:00
commit 78fb35c8e1
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ void ResultArea::initUi()
pal.setColor(QPalette::Window, RESULT_BACKGROUND_COLOR); pal.setColor(QPalette::Window, RESULT_BACKGROUND_COLOR);
scroll_bar_pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR); scroll_bar_pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR);
this->verticalScrollBar()->setPalette(scroll_bar_pal); this->verticalScrollBar()->setPalette(scroll_bar_pal);
this->verticalScrollBar()->setProperty("drawScrollBarGroove", false);
this->setFrameShape(QFrame::Shape::NoFrame); this->setFrameShape(QFrame::Shape::NoFrame);
this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);