深浅主题切换强调色 设置SDK密码框属性
This commit is contained in:
parent
b57d7b7a38
commit
c92e511d7c
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue