mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Ref T189, allow to set main window (injection)
In swift UI applications we init the main window explicitly, no need afterwars to search for it
This commit is contained in:
@@ -41,6 +41,9 @@ namespace BlackGui
|
||||
//! Main (frameless enabled) application window
|
||||
static CEnableForFramelessWindow *mainFramelessEnabledApplicationWindow();
|
||||
|
||||
//! Register main application window widget if this is known
|
||||
static void registerMainApplicationWindow(QWidget *mainWindow);
|
||||
|
||||
//! Main application window widget
|
||||
static QWidget *mainApplicationWindow();
|
||||
|
||||
@@ -131,6 +134,8 @@ namespace BlackGui
|
||||
private:
|
||||
//! Constructor, use static methods only
|
||||
CGuiUtility() {}
|
||||
|
||||
static QWidget *s_mainApplicationWindow;
|
||||
};
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user