Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created August 27, 2021 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torarnv/c11c267c6438dc45925b37d02a5731b7 to your computer and use it in GitHub Desktop.
Save torarnv/c11c267c6438dc45925b37d02a5731b7 to your computer and use it in GitHub Desktop.
diff --git i/src/gui/kernel/qevent.cpp w/src/gui/kernel/qevent.cpp
index ff9ec52b092..a765afd957e 100644
--- i/src/gui/kernel/qevent.cpp
+++ w/src/gui/kernel/qevent.cpp
@@ -2202,11 +2202,10 @@ QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos)
of the format.
\value Cursor If set, a cursor should be shown inside the preedit
- string at position start. The length variable determines whether
- the cursor is visible or not. If the length is 0 the cursor is
- invisible. If value is a QVariant of type QColor this color will
- be used for rendering the cursor, otherwise the color of the
- surrounding text will be used. There should be at most one Cursor
+ string at position start. The length variable determines the length
+ of the preedit selection. If value is a QVariant of type QColor this
+ color will be used for rendering the cursor, otherwise the color of
+ the surrounding text will be used. There should be at most one Cursor
attribute per event. If several are specified the behaviour is
undefined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment