same enabled borders between toolbutton and shadow

Change-Id: I6180121b32755f6f0ee391f8399b3a7cce55d14e
This commit is contained in:
Marco Martin 2016-01-07 12:56:56 +01:00
parent e565c5c225
commit dc1bfc3de1
2 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,7 @@ QtQuickControlStyle.ButtonStyle {
id: shadow
visible: !style.flat || control.activeFocus
anchors.fill: parent
enabledBorders: surfaceNormal.enabledBorders
state: {
if (control.pressed) {
return "hidden"

View File

@ -41,6 +41,7 @@ Item {
state: parent.state
//used to tell apart this implementation with the touch components one
property bool hasOverState: true
property alias enabledBorders: shadow.enabledBorders
PlasmaCore.FrameSvgItem {
id: hover