refs #935, detect changed stylesheet in launcher

This commit is contained in:
Klaus Basan
2017-04-15 00:34:39 +02:00
committed by Mathew Sutcliffe
parent 864fa88c65
commit ec025d63a7
2 changed files with 9 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ CSwiftLauncher::CSwiftLauncher(QWidget *parent) :
connect(ui->tb_ConfigurationWizard, &QToolButton::pressed, this, &CSwiftLauncher::ps_startWizard);
connect(ui->tb_Launcher, &QToolBox::currentChanged, this, &CSwiftLauncher::ps_tabChanged);
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::distributionInfoAvailable, this, &CSwiftLauncher::ps_distributionInfoAvailable);
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CSwiftLauncher::ps_onStyleSheetsChanged);
new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_L), this, SLOT(ps_showLogPage()));
ui->le_DBusServerPort->setValidator(new QIntValidator(0, 65535, this));
@@ -529,3 +530,8 @@ void CSwiftLauncher::ps_startWizard()
}
m_wizard->show();
}
void CSwiftLauncher::ps_onStyleSheetsChanged()
{
this->initStyleSheet();
}

View File

@@ -183,6 +183,9 @@ private slots:
//! Start the configuration wizard
void ps_startWizard();
//! Style sheet has been changed
void ps_onStyleSheetsChanged();
};
#endif // guard