diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-02-11 15:00:13 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-02-11 15:09:02 +0100 |
commit | 0ac879e39f677267b9b3e99ebb6376e0cf97f0fd (patch) | |
tree | c900d29184367dcb27547c8c9d50ec9e6eff000a /src/plugins/debugger/script/scriptengine.cpp | |
parent | 80b2b71a5b2eb616525c374da4e1dd7282c96685 (diff) | |
download | qt-creator-0ac879e39f677267b9b3e99ebb6376e0cf97f0fd.tar.gz |
Debugger: Make tooltips pinnable.
Replace old debugger tooltip by a new ToolTipManager which
has a list of AbstractDebuggerToolTipWidget with the functionality
to 'acquire' an engine (display its data) and 'release' it
(store engine data and display them as 'previous') and serialization
to XML session data.
DebuggerTreeViewToolTipWidget implements AbstractDebuggerToolTipWidget
for tree model acting as a filter on watch models.
Rubber-stamped-by: hjk
Diffstat (limited to 'src/plugins/debugger/script/scriptengine.cpp')
-rw-r--r-- | src/plugins/debugger/script/scriptengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp index d441e72d27..6b6a1e33d6 100644 --- a/src/plugins/debugger/script/scriptengine.cpp +++ b/src/plugins/debugger/script/scriptengine.cpp @@ -46,6 +46,7 @@ #include "stackhandler.h" #include "watchhandler.h" #include "watchutils.h" +#include "debuggertooltipmanager.h" #include <utils/qtcassert.h> @@ -512,11 +513,10 @@ static QPoint m_toolTipPos; static QHash<QString, WatchData> m_toolTipCache; void ScriptEngine::setToolTipExpression(const QPoint &mousePos, - TextEditor::ITextEditor *editor, int cursorPos) + TextEditor::ITextEditor *editor, const DebuggerToolTipContext &ctx) { Q_UNUSED(mousePos) Q_UNUSED(editor) - Q_UNUSED(cursorPos) if (state() != InferiorStopOk) { //SDEBUG("SUPPRESSING DEBUGGER TOOLTIP, INFERIOR NOT STOPPED"); @@ -530,7 +530,7 @@ void ScriptEngine::setToolTipExpression(const QPoint &mousePos, int line; int column; - QString exp = cppExpressionAt(editor, cursorPos, &line, &column); + QString exp = cppExpressionAt(editor, ctx.position, &line, &column); /* if (m_toolTipCache.contains(exp)) { |