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:
Klaus Basan
2017-11-18 18:43:01 +01:00
parent 63fbeecc00
commit 12667bca12
3 changed files with 24 additions and 6 deletions

View File

@@ -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