aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
-rw-r--r--tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index 58bbfa751f..8c11487793 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -3218,7 +3218,7 @@ void tst_QmlCppCodegen::lotsOfRegisters()
const qreal implicitBackgroundWidth = object->property("implicitBackgroundWidth").toDouble();
const qreal leftInset = object->property("leftInset").toDouble();
const qreal rightInset = object->property("rightInset").toDouble();
- const qreal contentWidth = object->property("contentWidth").toDouble();
+ const qreal implicitContentWidth = object->property("implicitContentWidth").toDouble();
const qreal leftPadding = object->property("leftPadding").toDouble();
const qreal rightPadding = object->property("rightPadding").toDouble();
const qreal implicitFooterWidth = object->property("implicitFooterWidth").toDouble();
@@ -3226,7 +3226,7 @@ void tst_QmlCppCodegen::lotsOfRegisters()
const qreal implicitWidth = object->property("implicitWidth").toDouble();
QCOMPARE(implicitWidth, qMax(qMax(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding),
+ implicitContentWidth + leftPadding + rightPadding),
qMax(implicitHeaderWidth, implicitFooterWidth)));
};