深浅主题切换强调色 设置SDK密码框属性

This commit is contained in:
zhangyuanyuan1 2022-10-24 09:55:38 +08:00 committed by jzxc95
parent b57d7b7a38
commit c92e511d7c
3 changed files with 25 additions and 0 deletions

View File

@ -183,6 +183,16 @@ void EnterpriseWlanDialog::initConnections()
});
connect(qApp, &QApplication::paletteChanged, this, &EnterpriseWlanDialog::onPaletteChanged);
const QByteArray id(THEME_SCHAME);
if(QGSettings::isSchemaInstalled(id)){
QGSettings * fontSetting = new QGSettings(id, QByteArray(), this);
connect(fontSetting, &QGSettings::changed,[=](QString key) {
if ("themeColor" == key) {
onPaletteChanged();
}
});
}
}
void EnterpriseWlanDialog::onPaletteChanged()

View File

@ -175,6 +175,18 @@ void JoinHiddenWiFiPage::initComponent()
setJoinBtnEnable();
});
connect(m_nameEdit, &LineEdit::textChanged, this, &JoinHiddenWiFiPage::setJoinBtnEnable);
connect(qApp, &QApplication::paletteChanged, this, &JoinHiddenWiFiPage::onPaletteChanged);
const QByteArray id(THEME_SCHAME);
if(QGSettings::isSchemaInstalled(id)){
QGSettings * fontSetting = new QGSettings(id, QByteArray(), this);
connect(fontSetting, &QGSettings::changed,[=](QString key) {
if ("themeColor" == key) {
onPaletteChanged();
}
});
}
}
void JoinHiddenWiFiPage::setJoinBtnEnable()

View File

@ -63,6 +63,7 @@ void SecurityPage::initUI()
secuTypeCombox = new QComboBox(this);
pwdEdit = new KPasswordEdit(this);
pwdEdit->setUseCustomPalette(true);
eapTypeCombox = new QComboBox(this);
//TLS
identityEdit = new LineEdit(this);
@ -72,6 +73,7 @@ void SecurityPage::initUI()
clientCertPathCombox = new QComboBox(this);
clientPrivateKeyCombox = new QComboBox(this);
clientPrivateKeyPwdEdit = new KPasswordEdit(this);
clientPrivateKeyPwdEdit->setUseCustomPalette(true);
pwdOptionCombox = new QComboBox(this);
tlsWidget = new QWidget(this);
@ -79,6 +81,7 @@ void SecurityPage::initUI()
eapMethodCombox = new QComboBox(this);
userNameEdit = new LineEdit(this);
userPwdEdit = new KPasswordEdit(this);
userPwdEdit->setUseCustomPalette(true);
userPwdFlagBox = new QCheckBox(this);
QWidget *queryWidget = new QWidget(this);