diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-09-03 17:12:23 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-09-03 17:16:45 (GMT) |
commit | 67db4b23e924ed5091f609db7d6864c268176044 (patch) | |
tree | cd0a2fbeecc66cf1063367b669290a90f45936c1 | |
parent | 3b72c8d967999c5440efe938873e77a859776de5 (diff) | |
download | Qt-67db4b23e924ed5091f609db7d6864c268176044.zip Qt-67db4b23e924ed5091f609db7d6864c268176044.tar.gz Qt-67db4b23e924ed5091f609db7d6864c268176044.tar.bz2 |
Recognize @, #, $ and ` as word separators
The behavior of Qt with these characters was different than other
toolkits, which annoys some people.
Task-number: QTCREATORBUG-2241
Reviewed-by: mae
-rw-r--r-- | src/gui/text/qtextengine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 119217a..05de8f5 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -2263,6 +2263,9 @@ bool QTextEngine::atWordSeparator(int position) const case ',': case '?': case '!': + case '@': + case '#': + case '$': case ':': case ';': case '-': @@ -2283,6 +2286,7 @@ bool QTextEngine::atWordSeparator(int position) const case '*': case '\'': case '"': + case '`': case '~': case '|': return true; |