From efa22507386d3a0dcc97b703219dcf9714f55a8d Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 13 Jan 2017 08:40:29 +0100 Subject: 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 --- tests/testapplications/textlayout/styledtext-layout.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testapplications') 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() } } } -- cgit v1.2.3