From 0ac879e39f677267b9b3e99ebb6376e0cf97f0fd Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 11 Feb 2011 15:00:13 +0100 Subject: 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 --- src/plugins/debugger/script/scriptengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/debugger/script/scriptengine.cpp') 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 @@ -512,11 +513,10 @@ static QPoint m_toolTipPos; static QHash 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)) { -- cgit v1.2.1