Commit dd5e145d authored by hjk's avatar hjk

Debugger: Expose mainWindow to other plugins

Needed by GammaRay integration when merging the modes.

Change-Id: I21ee65c55e242238ab0be244c4bb40f1c9c7924e
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent dee7ad38
......@@ -134,6 +134,7 @@ DEBUGGER_EXPORT void registerPerspective(const QByteArray &perspectiveId, const
DEBUGGER_EXPORT void registerToolbar(const QByteArray &perspectiveId, const Utils::ToolbarDescription &desc);
DEBUGGER_EXPORT void enableMainWindow(bool on);
DEBUGGER_EXPORT QWidget *mainWindow();
DEBUGGER_EXPORT void selectPerspective(const QByteArray &perspectiveId);
DEBUGGER_EXPORT void runAction(Core::Id actionId);
......
......@@ -3602,6 +3602,11 @@ void runAction(Id actionId)
desc.startTool();
}
QWidget *mainWindow()
{
return dd->m_mainWindow;
}
void enableMainWindow(bool on)
{
dd->m_mainWindow->setEnabled(on);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment