[ScrollViewStyle] Evaluate frameVisible property

ScrollArea has a property for en/disabling the frame provided by its style.
Until now the property wasn't evaluated, which besides making it impossible
to deactivate the frame leads to visual artifacts (observed in Simple Menu:
Flashing frame at the bottom of the page list).

In order to not change the current implementations we additionally set the
value in ScrollArea to true.

Reviewed By: mart

Subscribers: broulik, hein, plasma-devel, #frameworks

Tags: #plasma, #frameworks

Differential Revision: https://phabricator.kde.org/D4473
This commit is contained in:
Roman Gilg 2017-02-07 14:03:51 +01:00
parent d8a1a9eb08
commit eb39b35141
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ QtQuickControls.ScrollView {
id: root
style: Styles.ScrollViewStyle{}
frameVisible: true
//START HACK
//The following is a workaround for QTBUG-17051

View File

@ -56,6 +56,8 @@ QtQuickControlStyle.ScrollViewStyle {
}
frame: Item {
visible: frameVisible
PlasmaCore.Svg {
id: borderSvg
imagePath: "widgets/scrollwidget"