From ad6a1b0d26dee4e6474b73f9363fb6726e304e14 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 5 Mar 2015 23:44:00 +0100 Subject: Add Control::padding for convenience Change-Id: I9a472e2378854ba07ce34ad571f54b0fa4a3755c Reviewed-by: Jari-Pekka Nurmi --- src/imports/controls/Switch.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/imports/controls/Switch.qml') diff --git a/src/imports/controls/Switch.qml b/src/imports/controls/Switch.qml index 4ce9801d..0b69000f 100644 --- a/src/imports/controls/Switch.qml +++ b/src/imports/controls/Switch.qml @@ -54,10 +54,7 @@ AbstractSwitch { Accessible.pressed: pressed Accessible.role: Accessible.Button // TODO: Switch? - topPadding: style.padding - leftPadding: style.padding - rightPadding: style.padding - bottomPadding: style.padding + padding: style.padding indicator: Rectangle { readonly property bool mirror: control.effectiveLayoutDirection == Qt.RightToLeft -- cgit v1.2.1