summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcontrol_p_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-11-11 15:59:37 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-11-11 16:02:17 (GMT)
commitfab1ce65da8bacfce92b1df7656780e729d31b74 (patch)
tree5a18285c4a506ba778b018f52f8f8500ee0b4456 /src/gui/text/qtextcontrol_p_p.h
parent06baf7f173b0331a5192616b8ecf9611130f278b (diff)
downloadQt-fab1ce65da8bacfce92b1df7656780e729d31b74.zip
Qt-fab1ce65da8bacfce92b1df7656780e729d31b74.tar.gz
Qt-fab1ce65da8bacfce92b1df7656780e729d31b74.tar.bz2
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 ca9db9f..af3b521 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;