aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlplugindump/main.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-12-13 21:41:34 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2022-01-06 16:54:14 +0100
commit308f3cbc1a00181e39db94e6329978d872d7b520 (patch)
treeeaef1e37b96229c915be2bc0659720cd6cf46ec0 /tools/qmlplugindump/main.cpp
parentea062064f753cd9bf8498a2aef8e44f9061aea0c (diff)
TextEdit: hide cursor outside viewport if ItemObservesViewport
Given a TextEdit in a Flickable, when someone scrolls the text such that the text cursor is completely outside the viewport, we want the text cursor to be hidden. It is clipped if Flickable has clip: true, which is better for "pixel-perfect" clipping, but has a performance penalty. Anyway it still looked ridiculous in the case when clipping is not turned on, to have a stray text cursor appearing on top of some neighbor items, even though the text wasn't visible. To have awareness of the viewport (such as Flickable) within which it's shown, TextEdit has to opt-in with the ItemObservesViewport flag so that QQuickTextEditPrivate::transformChanged() will be called; the question is under what conditions. We already opt-in when the text is large; otherwise we don't really want to have updatePaintNode() called so often, unless other code opts in by setting that flag; because for short texts, the old way is more efficient (populate all the glyphs from the document into the scenegraph one time, and no need to update until editing happens). Task-number: QTBUG-83069 Pick-to: 6.3 Change-Id: Idd7cc9d2369d67b967eec50fe81964e6abe84e9c Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tools/qmlplugindump/main.cpp')
0 files changed, 0 insertions, 0 deletions