aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextinput.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-01-16 13:45:28 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-01-16 20:17:21 +0100
commitef643fb1d6b53db3a9c5345c14437c5281159634 (patch)
treeaf198d80b55d67a4ec4bd5e0eb3c78becbfe372e /src/quick/items/qquicktextinput.cpp
parenteaaa8647da5a39621c7bb963c75c3071d3bec9a7 (diff)
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 <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextinput.cpp')
-rw-r--r--src/quick/items/qquicktextinput.cpp2
1 files changed, 1 insertions, 1 deletions
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);