fix: std<c++17

This commit is contained in:
鎧塚 希美 2024-11-26 14:27:11 +00:00 committed by GitHub
parent 28e2e1937c
commit f8be375d09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 5 deletions

View File

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