forked from qt-creator/qt-creator
Debugger: Replace debuggerCore() by equivalent free functions
One indirection less on the user code side, and easier to export if needed (partially addressing QTCREATORBUG-13187) Change-Id: I13ab9f471a3a34da7a6331aefc83f6d02413bfab Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -1115,7 +1115,7 @@ void DebuggerToolTipManager::showToolTip
|
||||
tw->acquireEngine();
|
||||
|
||||
const Utils::WidgetContent widgetContent(tw, true);
|
||||
Utils::ToolTip::show(context.mousePosition, widgetContent, debuggerCore()->mainWindow());
|
||||
Utils::ToolTip::show(context.mousePosition, widgetContent, Internal::mainWindow());
|
||||
}
|
||||
|
||||
bool DebuggerToolTipManager::eventFilter(QObject *o, QEvent *e)
|
||||
@@ -1320,7 +1320,7 @@ void DebuggerToolTipManager::slotTooltipOverrideRequested
|
||||
|
||||
if (context.expression.isEmpty()) {
|
||||
const Utils::WidgetContent widgetContent(new QLabel(tr("No valid expression")), true);
|
||||
Utils::ToolTip::show(context.mousePosition, widgetContent, debuggerCore()->mainWindow());
|
||||
Utils::ToolTip::show(context.mousePosition, widgetContent, Internal::mainWindow());
|
||||
*handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user