aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_itemdelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-05 13:33:08 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-06 13:16:14 +0000
commit54efc8f33d9c37e8912f5755af588817192a869d (patch)
tree31bc7b81e95ffccb0e2948f44898941ca49f46c1 /tests/auto/controls/data/tst_itemdelegate.qml
parent802f6b747f4cd76bda4395b6bc06dec81da1110c (diff)
ItemDelegate: migrate from label to contentItem
Change-Id: I928192b1b5d31e077032cba31f1bde3bf35491f3 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls/data/tst_itemdelegate.qml')
-rw-r--r--tests/auto/controls/data/tst_itemdelegate.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_itemdelegate.qml b/tests/auto/controls/data/tst_itemdelegate.qml
index e2f78ac5..f2fd3794 100644
--- a/tests/auto/controls/data/tst_itemdelegate.qml
+++ b/tests/auto/controls/data/tst_itemdelegate.qml
@@ -58,7 +58,7 @@ TestCase {
function test_baseline() {
var control = itemDelegate.createObject(testCase)
verify(control)
- compare(control.baselineOffset, control.label.y + control.label.baselineOffset)
+ compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
control.destroy()
}
}