自定义对话框logo跟随主题

This commit is contained in:
zhaominyong 2021-12-06 15:19:06 +08:00
parent 0469c1a28a
commit 453e9029ea
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include "../common/mydefine.h"
#include "../common/utils.h"
#include "messageboxutils.h"
#include "gsettingswrapper.h"
DeleteBackupDialog::DeleteBackupDialog(ParseBackupList::BackupPoint backupPonit, QWidget *parent) :
QDialog(parent),
@ -42,6 +43,7 @@ DeleteBackupDialog::DeleteBackupDialog(ParseBackupList::BackupPoint backupPonit,
m_mTitleIcon->setFixedSize(24, 24);
QIcon titleIcon = QIcon::fromTheme(THEME_YHKYLIN_BACKUP_TOOLS);
m_mTitleIcon->setPixmap(titleIcon.pixmap(titleIcon.actualSize(QSize(24, 24))));
GSettingsWrapper::connectUkuiStyleSchema(m_mTitleIcon);
// 标题
m_titleLabel = new MyLabel;