aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine/CheckBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/imagine/CheckBox.qml')
-rw-r--r--src/imports/controls/imagine/CheckBox.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/imports/controls/imagine/CheckBox.qml b/src/imports/controls/imagine/CheckBox.qml
index b7d950c7..3f0b7684 100644
--- a/src/imports/controls/imagine/CheckBox.qml
+++ b/src/imports/controls/imagine/CheckBox.qml
@@ -55,6 +55,11 @@ T.CheckBox {
rightPadding: background ? background.rightPadding : 0
bottomPadding: background ? background.bottomPadding : 0
+ topInset: background ? -background.topInset || 0 : 0
+ leftInset: background ? -background.leftInset || 0 : 0
+ rightInset: background ? -background.rightInset || 0 : 0
+ bottomInset: background ? -background.bottomInset || 0 : 0
+
indicator: Image {
x: text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
y: control.topPadding + (control.availableHeight - height) / 2
@@ -85,10 +90,6 @@ T.CheckBox {
}
background: NinePatchImage {
- x: -leftInset; y: -topInset
- width: control.width + leftInset + rightInset
- height: control.height + topInset + bottomInset
-
source: Imagine.url + "checkbox-background"
NinePatchImageSelector on source {
states: [