From dc1bfc3de15d291fd87e1809cf3b38a62c10020f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 7 Jan 2016 12:56:56 +0100 Subject: [PATCH] same enabled borders between toolbutton and shadow Change-Id: I6180121b32755f6f0ee391f8399b3a7cce55d14e --- src/declarativeimports/plasmastyle/ToolButtonStyle.qml | 1 + src/declarativeimports/plasmastyle/private/ButtonShadow.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml index 926bbff0c..711609407 100644 --- a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml +++ b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml @@ -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" diff --git a/src/declarativeimports/plasmastyle/private/ButtonShadow.qml b/src/declarativeimports/plasmastyle/private/ButtonShadow.qml index 5350ad77d..19c99375a 100644 --- a/src/declarativeimports/plasmastyle/private/ButtonShadow.qml +++ b/src/declarativeimports/plasmastyle/private/ButtonShadow.qml @@ -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