mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #368, function for mainWindow widgets in info area
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
*/
|
||||
|
||||
#include "enablefordockwidgetinfoarea.h"
|
||||
#include "blackgui/guiutility.h"
|
||||
|
||||
using namespace BlackGui;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
@@ -64,5 +67,17 @@ namespace BlackGui
|
||||
return this->m_parentDockableInfoArea->isVisibleWidget();
|
||||
}
|
||||
|
||||
CEnableForFramelessWindow *CEnableForDockWidgetInfoArea::mainApplicationWindow() const
|
||||
{
|
||||
CEnableForFramelessWindow *mw = CGuiUtility::mainApplicationWindow();
|
||||
return mw;
|
||||
}
|
||||
|
||||
QWidget *CEnableForDockWidgetInfoArea::mainApplicationWindowWidget() const
|
||||
{
|
||||
CEnableForFramelessWindow *mw = this->mainApplicationWindow();
|
||||
return mw ? mw->getWidget() : nullptr;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user