summaryrefslogtreecommitdiffstats
path: root/src/scripttools
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-10-22 05:10:58 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-01 07:57:41 (GMT)
commit8f84a6e549b90286afb2e4af378ea8b271babcd5 (patch)
tree7c270de7f3553a5bdec2f61d3a3148b79c71dfe1 /src/scripttools
parentef98098ef34581a473a885badea63d415bcf64f3 (diff)
downloadQt-8f84a6e549b90286afb2e4af378ea8b271babcd5.zip
Qt-8f84a6e549b90286afb2e4af378ea8b271babcd5.tar.gz
Qt-8f84a6e549b90286afb2e4af378ea8b271babcd5.tar.bz2
Fix tab-completion for variables that have digits in them
In the QtScript Debugger if a variable had a number in it then it would not tab complete to show the member variables. This accounts for digits so that it is correctly able to find the variable to complete on. Change-Id: I4fe0b3b776aba0e3caa6dd524c1a0c59421ea515 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> (cherry picked from qtscript/925f1264c590c12aaa5f93a687c7b2aba4370115)
Diffstat (limited to 'src/scripttools')
-rw-r--r--src/scripttools/debugging/qscriptcompletiontask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptcompletiontask.cpp b/src/scripttools/debugging/qscriptcompletiontask.cpp
index 7ea204f..019eda4 100644
--- a/src/scripttools/debugging/qscriptcompletiontask.cpp
+++ b/src/scripttools/debugging/qscriptcompletiontask.cpp
@@ -118,7 +118,7 @@ namespace {
static bool isIdentChar(const QChar &ch)
{
static QChar underscore = QLatin1Char('_');
- return ch.isLetter() || (ch == underscore);
+ return ch.isLetterOrNumber() || (ch == underscore);
}
static bool isPrefixOf(const QString &prefix, const QString &what)