diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-12 13:25:38 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-12 13:25:38 (GMT) |
commit | c9bddb70cb4804672cedb23dbfb3ca13724f0e68 (patch) | |
tree | d3bdfd6e79a461d7c525d52512691139cb57d11f /src/scripttools/debugging/qscriptdebuggercodeview.cpp | |
parent | 5038fe5d545292c58f0e06b1b6a34115ef8d357a (diff) | |
download | Qt-c9bddb70cb4804672cedb23dbfb3ca13724f0e68.zip Qt-c9bddb70cb4804672cedb23dbfb3ca13724f0e68.tar.gz Qt-c9bddb70cb4804672cedb23dbfb3ca13724f0e68.tar.bz2 |
fix bugs in the completion+tooltip providers
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercodeview.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggercodeview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggercodeview.cpp b/src/scripttools/debugging/qscriptdebuggercodeview.cpp index bc493e0..c03ec83 100644 --- a/src/scripttools/debugging/qscriptdebuggercodeview.cpp +++ b/src/scripttools/debugging/qscriptdebuggercodeview.cpp @@ -214,7 +214,6 @@ bool QScriptDebuggerCodeView::event(QEvent *e) if (contents.isEmpty()) return false; int linePosition = cursor.position() - block.position(); - linePosition -= 3; if (linePosition < 0) linePosition = 0; @@ -233,7 +232,7 @@ bool QScriptDebuggerCodeView::event(QEvent *e) // ignore string literals return false; } - int pos2 = linePosition; + int pos2 = linePosition - 1; while ((pos2 < contents.size()-1) && isIdentChar(contents.at(pos2+1))) ++pos2; QString ident = contents.mid(pos, pos2 - pos + 1); |