summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-10-22 07:10:58 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-22 09:38:46 +0200
commit925f1264c590c12aaa5f93a687c7b2aba4370115 (patch)
tree984d241bd974facf74decd83b3f2229e2f8dd5bb /src
parent1deb9e76e6f8dd85e974913ac3234f89dd4925c8 (diff)
downloadqtscript-925f1264c590c12aaa5f93a687c7b2aba4370115.tar.gz
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>
Diffstat (limited to 'src')
-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 769293d..fe0cb93 100644
--- a/src/scripttools/debugging/qscriptcompletiontask.cpp
+++ b/src/scripttools/debugging/qscriptcompletiontask.cpp
@@ -120,7 +120,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)