diff options
Diffstat (limited to 'src/imports/controls/ItemDelegate.qml')
-rw-r--r-- | src/imports/controls/ItemDelegate.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imports/controls/ItemDelegate.qml b/src/imports/controls/ItemDelegate.qml index 5735d0b3..b5dfb4b6 100644 --- a/src/imports/controls/ItemDelegate.qml +++ b/src/imports/controls/ItemDelegate.qml @@ -47,6 +47,7 @@ T.ItemDelegate { implicitHeight: Math.max(background ? background.implicitHeight : 0, Math.max(label ? label.implicitHeight : 0, indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) + baselineOffset: label ? label.y + label.baselineOffset : 0 padding: 12 spacing: 12 @@ -74,7 +75,7 @@ T.ItemDelegate { y: control.topPadding + (control.availableHeight - height) / 2 visible: control.checked - source: control.checkable ? "qrc:/images/check.png" : "" + source: control.checkable ? "qrc:/qt-project.org/imports/Qt/labs/controls/images/check.png" : "" } //! [indicator] @@ -82,7 +83,8 @@ T.ItemDelegate { background: Rectangle { implicitWidth: 100 implicitHeight: 40 - color: control.pressed ? "#bdbebf" : "transparent" + visible: control.pressed || control.highlighted + color: control.pressed ? "#bdbebf" : "#eeeeee" } //! [background] } |