aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testapplications
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-01-13 08:40:29 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-01-14 05:02:57 +0000
commitefa22507386d3a0dcc97b703219dcf9714f55a8d (patch)
tree6bd165292ec835382c4ea933fb0dd4868faa1c42 /tests/testapplications
parente85ebe01b61a64ed64592dedb71c5913cd5080fd (diff)
Deprecate Text::doLayout() in favor of forceLayout()
Item views and positioners all have now forceLayout(), so make the Text element API consistent with them. The old doLayout(), which sounds more like an internal helper method, is deprecated and marked for removal in Qt 6. [ChangeLog][QtQuick][Text] Deprecated doLayout() in favor of forceLayout(). Change-Id: I051988fca13c4cd84904f7b268d51f6a96f28af3 Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'tests/testapplications')
-rw-r--r--tests/testapplications/textlayout/styledtext-layout.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testapplications/textlayout/styledtext-layout.qml b/tests/testapplications/textlayout/styledtext-layout.qml
index 4ad0c7e279..80f62a6b8f 100644
--- a/tests/testapplications/textlayout/styledtext-layout.qml
+++ b/tests/testapplications/textlayout/styledtext-layout.qml
@@ -88,7 +88,7 @@ Rectangle {
drag.target: rect
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: mouse.button == Qt.RightButton ? myText.font.pixelSize -= 1 : myText.font.pixelSize += 1
- onPositionChanged: myText.doLayout()
+ onPositionChanged: myText.forceLayout()
}
}
}