summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercodewidget.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-12 13:32:20 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-12 13:32:20 (GMT)
commit5f287af53d146e76a11f23c889d9591d9c0b7b65 (patch)
tree08c2b9ae8260358a8d03621856d7d03fbda776dc /src/scripttools/debugging/qscriptdebuggercodewidget.cpp
parentc9bddb70cb4804672cedb23dbfb3ca13724f0e68 (diff)
downloadQt-5f287af53d146e76a11f23c889d9591d9c0b7b65.zip
Qt-5f287af53d146e76a11f23c889d9591d9c0b7b65.tar.gz
Qt-5f287af53d146e76a11f23c889d9591d9c0b7b65.tar.bz2
make debugger's tooltip handling asynchronous
Needed for remote debugging.
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercodewidget.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggercodewidget.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggercodewidget.cpp b/src/scripttools/debugging/qscriptdebuggercodewidget.cpp
index 14ce0fe..b2f1dec 100644
--- a/src/scripttools/debugging/qscriptdebuggercodewidget.cpp
+++ b/src/scripttools/debugging/qscriptdebuggercodewidget.cpp
@@ -49,7 +49,6 @@
#include <QtCore/qdebug.h>
#include <QtGui/qboxlayout.h>
#include <QtGui/qstackedwidget.h>
-#include <QtGui/qtooltip.h>
QT_BEGIN_NAMESPACE
@@ -197,17 +196,7 @@ void QScriptDebuggerCodeWidgetPrivate::_q_onScriptsChanged()
void QScriptDebuggerCodeWidgetPrivate::_q_onToolTipRequest(
const QPoint &pos, int lineNumber, const QStringList &path)
{
- QString tip = toolTipProvider->toolTip(/*frameIndex=*/-1, lineNumber, path);
- if (tip.indexOf(QLatin1Char('\n')) != -1) {
- QStringList lines = tip.split(QLatin1Char('\n'));
- int lineCount = lines.size();
- if (lineCount > 5) {
- lines = lines.mid(0, 5);
- lines.append(QString::fromLatin1("(... %0 more lines ...)").arg(lineCount - 5));
- }
- tip = lines.join(QLatin1String("\n"));
- }
- QToolTip::showText(pos, tip);
+ toolTipProvider->showToolTip(pos, /*frameIndex=*/-1, lineNumber, path);
}
QScriptDebuggerCodeWidget::QScriptDebuggerCodeWidget(QWidget *parent)