diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-02-13 08:20:20 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-02-15 09:12:23 +0100 |
commit | 416312130ed136a2e3f54c00b71400108fb75161 (patch) | |
tree | 2c53cc59178414d94e864b1bda43091036b5952a /src/quick/items/qquicktextedit.cpp | |
parent | 2023c1664bc3b439edbb0da871e14000ec1c148a (diff) |
Replace QSGTextNode::smooth with QSGTextNode::filtering
The "smooth" property was intended to match the one in QQuickItem,
which uses a less technical name (but also less precise). Since
QSGTextNode is scenegraph API, it makes sense to expose the actual
property of the texture instead of trying to mimic the vague name
in QQuickItem.
Pick-to: 6.7
Change-Id: I6fb2ac637a654e1df677bf95f43c28b0bc0661a1
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextedit.cpp')
-rw-r--r-- | src/quick/items/qquicktextedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextedit.cpp b/src/quick/items/qquicktextedit.cpp index 938f75e963..b341f2cbe3 100644 --- a/src/quick/items/qquicktextedit.cpp +++ b/src/quick/items/qquicktextedit.cpp @@ -3148,7 +3148,7 @@ QSGInternalTextNode *QQuickTextEditPrivate::createTextNode() Q_Q(QQuickTextEdit); QSGInternalTextNode* node = sceneGraphContext()->createInternalTextNode(sceneGraphRenderContext()); node->setRenderType(QSGTextNode::RenderType(renderType)); - node->setSmooth(q->smooth()); + node->setFiltering(q->smooth() ? QSGTexture::Linear : QSGTexture::Nearest); return node; } |