summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcontrol_p_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-11-11 16:59:37 +0100
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-11-11 17:02:17 +0100
commitfab1ce65da8bacfce92b1df7656780e729d31b74 (patch)
tree5a18285c4a506ba778b018f52f8f8500ee0b4456 /src/gui/text/qtextcontrol_p_p.h
parent06baf7f173b0331a5192616b8ecf9611130f278b (diff)
Add option to ingore unused navigation events in QTextControl
QFxTextEdit, as well as systems with keypad navigation, needs the text control to ignore navigation events that have no effect (like hitting the right navigation key at the end of the text.) Previously, we would only support this for keypad navigation. This patch introduces a flag that you can set to tell the QTextControl to ignore these events. If the flag is not explicitly set, behavior should remain as before. The if-test has been refactored to make it more readable. Done-with: Alan Alpert Reviewed-by: Samuel
Diffstat (limited to 'src/gui/text/qtextcontrol_p_p.h')
-rw-r--r--src/gui/text/qtextcontrol_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextcontrol_p_p.h b/src/gui/text/qtextcontrol_p_p.h
index ca9db9f9d3..af3b521fba 100644
--- a/src/gui/text/qtextcontrol_p_p.h
+++ b/src/gui/text/qtextcontrol_p_p.h
@@ -206,6 +206,7 @@ public:
QString anchorOnMousePress;
bool hadSelectionOnMousePress;
+ bool ignoreUnusedNavigationEvents;
bool openExternalLinks;
QString linkToCopy;