From ef643fb1d6b53db3a9c5345c14437c5281159634 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 16 Jan 2024 13:45:28 +0100 Subject: Add clear() function to QSGTextNode interface This was omitted from the API by accident, which makes the class a lot less convenient to use. Pick-to: 6.7 Change-Id: I648d5088725a8a5c1f1ec603c466656e4f318b0f Reviewed-by: Andy Nichols --- src/quick/items/qquicktextinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/items/qquicktextinput.cpp') diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index d0939d70d2..363fa1cbd3 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -1988,7 +1988,7 @@ QSGNode *QQuickTextInput::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData node->clearCursor(); } else { node->setRenderType(QSGTextNode::RenderType(d->renderType)); - node->deleteContent(); + node->clear(); node->setMatrix(QMatrix4x4()); node->setTextStyle(QSGInternalTextNode::Normal); node->setColor(d->color); -- cgit v1.2.3