fix: std<c++17
This commit is contained in:
parent
28e2e1937c
commit
f8be375d09
|
@ -181,6 +181,7 @@ CSandMan::CSandMan(QWidget *parent)
|
|||
connect(theAPI, SIGNAL(StatusChanged()), this, SLOT(OnStatusChanged()));
|
||||
|
||||
connect(theAPI, SIGNAL(BoxAdded(const CSandBoxPtr&)), this, SLOT(OnBoxAdded(const CSandBoxPtr&)));
|
||||
connect(theAPI, SIGNAL(BoxOpened(const CSandBoxPtr&)), this, SLOT(OnBoxOpened(const CSandBoxPtr&)));
|
||||
connect(theAPI, SIGNAL(BoxClosed(const CSandBoxPtr&)), this, SLOT(OnBoxClosed(const CSandBoxPtr&)));
|
||||
connect(theAPI, SIGNAL(BoxCleaned(CSandBoxPlus*)), this, SLOT(OnBoxCleaned(CSandBoxPlus*)));
|
||||
|
||||
|
@ -2352,6 +2353,11 @@ void CSandMan::OnStartMenuChanged()
|
|||
}
|
||||
}
|
||||
|
||||
void CSandMan::OnBoxOpened(const CSandBoxPtr& pBox)
|
||||
{
|
||||
CSupportDialog::CheckSupport(true);
|
||||
}
|
||||
|
||||
void CSandMan::OnBoxClosed(const CSandBoxPtr& pBox)
|
||||
{
|
||||
foreach(const QString & Value, pBox->GetTextList("OnBoxTerminate", true, false, true)) {
|
||||
|
@ -4244,11 +4250,12 @@ void CSandMan::SetUITheme()
|
|||
CFinder::SetDarkMode(bDark);
|
||||
|
||||
|
||||
QFont font = QApplication::font();
|
||||
if (QString customFont = theConf->GetString("UIConfig/UIFont",""); customFont != ""){
|
||||
font.setFamily(customFont);
|
||||
QApplication::setFont(font);
|
||||
}
|
||||
QFont font = QApplication::font();
|
||||
QString customFontStr = theConf->GetString("UIConfig/UIFont", "");
|
||||
if (customFontStr != "") {
|
||||
font.setFamily(customFontStr);
|
||||
QApplication::setFont(font);
|
||||
}
|
||||
double newFontSize = m_DefaultFontSize * theConf->GetInt("Options/FontScaling", 100) / 100.0;
|
||||
if (newFontSize != font.pointSizeF()) {
|
||||
font.setPointSizeF(newFontSize);
|
||||
|
|
Loading…
Reference in New Issue