Commit 27d15563 authored by Filipe Azevedo's avatar Filipe Azevedo

Export currentPerspective() from debugger window

Change-Id: Icef2b21e86f678bdd9f10dc26197db97bba6ade9
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 2b9e9ebb
......@@ -137,6 +137,7 @@ DEBUGGER_EXPORT void enableMainWindow(bool on);
DEBUGGER_EXPORT QWidget *mainWindow();
DEBUGGER_EXPORT void selectPerspective(const QByteArray &perspectiveId);
DEBUGGER_EXPORT QByteArray currentPerspective();
// Convenience functions.
DEBUGGER_EXPORT void showStatusMessage(const QString &message, int timeoutMS = 10000);
......
......@@ -3610,6 +3610,11 @@ void selectPerspective(const QByteArray &perspectiveId)
dd->m_mainWindow->restorePerspective(perspectiveId);
}
QByteArray currentPerspective()
{
return dd->m_mainWindow->currentPerspective();
}
QWidget *mainWindow()
{
return dd->m_mainWindow;
......
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