aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/ItemDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/ItemDelegate.qml')
-rw-r--r--src/imports/controls/material/ItemDelegate.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml
index 73a63397..8cd53e88 100644
--- a/src/imports/controls/material/ItemDelegate.qml
+++ b/src/imports/controls/material/ItemDelegate.qml
@@ -48,6 +48,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: 16
spacing: 16
@@ -146,6 +147,7 @@ T.ItemDelegate {
//! [background]
background: Rectangle {
+ visible: control.pressed || control.highlighted
color: control.pressed ? control.Material.flatButtonPressColor : control.Material.backgroundColor
}
//! [background]