mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #670, signal when UI tree is build
Motivated by slack discussion RW/KB
This commit is contained in:
@@ -160,14 +160,17 @@ namespace BlackGui
|
||||
return m;
|
||||
}
|
||||
|
||||
void CGuiApplication::initMainApplicationWindow(QWidget *mainWindow) const
|
||||
void CGuiApplication::initMainApplicationWindow(QWidget *mainWindow)
|
||||
{
|
||||
if (!mainWindow) { return; }
|
||||
if (this->m_uiSetupCompleted) { return; }
|
||||
this->m_uiSetupCompleted = true;
|
||||
const QString name(this->getApplicationNameVersionBetaDev());
|
||||
mainWindow->setObjectName(QCoreApplication::applicationName());
|
||||
mainWindow->setWindowTitle(name);
|
||||
mainWindow->setWindowIcon(m_windowIcon);
|
||||
mainWindow->setWindowIconText(name);
|
||||
emit this->uiObjectTreeReady();
|
||||
}
|
||||
|
||||
void CGuiApplication::setWindowIcon(const QPixmap &icon)
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace BlackGui
|
||||
void processEventsToRefreshGui() const;
|
||||
|
||||
//! Init the main application window based on information in this application
|
||||
void initMainApplicationWindow(QWidget *mainWindow) const;
|
||||
void initMainApplicationWindow(QWidget *mainWindow);
|
||||
|
||||
//! \name print messages generated during parsing / cmd handling
|
||||
//! @{
|
||||
@@ -156,6 +156,9 @@ namespace BlackGui
|
||||
//! Style sheet changed
|
||||
void styleSheetsChanged();
|
||||
|
||||
//! Object tree ready (means ui->setupUi() completed)
|
||||
void uiObjectTreeReady();
|
||||
|
||||
protected slots:
|
||||
//! Startup competed
|
||||
virtual void ps_startupCompleted() override;
|
||||
@@ -178,7 +181,8 @@ namespace BlackGui
|
||||
QCommandLineOption m_cmdWindowStateMinimized { "empty" }; //!< window state (minimized)
|
||||
QCommandLineOption m_cmdWindowMode { "empty" }; //!< window mode (flags: frameless ...)
|
||||
CStyleSheetUtility m_styleSheetUtility{{}, this}; //!< style sheet utility
|
||||
QScopedPointer<QSplashScreen> m_splashScreen; //!< splash screen
|
||||
QScopedPointer<QSplashScreen> m_splashScreen; //!< splash screen
|
||||
bool m_uiSetupCompleted = false; //!< ui setup completed
|
||||
|
||||
//! Qt help message to formatted HTML
|
||||
static QString beautifyHelpMessage(const QString &helpText);
|
||||
|
||||
Reference in New Issue
Block a user