forked from openkylin/ukui-search
Merge branch 'ukss-dev' into 'ukss-dev'
修改滚动条样式。 See merge request kylin-desktop/ukui-search!326
This commit is contained in:
commit
78fb35c8e1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue