aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/ItemDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-04 13:22:07 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-04 20:15:58 +0000
commit469012e1e4c2a7f667fcf822ea64adea66804287 (patch)
treebc046b084bc751ba22e54cbb15c4d56bdf695307 /src/imports/controls/ItemDelegate.qml
parent82f7d6bcefe233def40311d16fffe68c6f72282f (diff)
ItemDelegate: specify baseline offset
Change-Id: I5bbcd762f2a70822262490835bf46caaa95f4c07 Task-number: QTBUG-49468 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/ItemDelegate.qml')
-rw-r--r--src/imports/controls/ItemDelegate.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/controls/ItemDelegate.qml b/src/imports/controls/ItemDelegate.qml
index f8060432..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