深浅主题切换强调色 设置SDK密码框属性
This commit is contained in:
parent
b57d7b7a38
commit
c92e511d7c
|
@ -183,6 +183,16 @@ void EnterpriseWlanDialog::initConnections()
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(qApp, &QApplication::paletteChanged, this, &EnterpriseWlanDialog::onPaletteChanged);
|
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()
|
void EnterpriseWlanDialog::onPaletteChanged()
|
||||||
|
|
|
@ -175,6 +175,18 @@ void JoinHiddenWiFiPage::initComponent()
|
||||||
setJoinBtnEnable();
|
setJoinBtnEnable();
|
||||||
});
|
});
|
||||||
connect(m_nameEdit, &LineEdit::textChanged, this, &JoinHiddenWiFiPage::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()
|
void JoinHiddenWiFiPage::setJoinBtnEnable()
|
||||||
|
|
|
@ -63,6 +63,7 @@ void SecurityPage::initUI()
|
||||||
|
|
||||||
secuTypeCombox = new QComboBox(this);
|
secuTypeCombox = new QComboBox(this);
|
||||||
pwdEdit = new KPasswordEdit(this);
|
pwdEdit = new KPasswordEdit(this);
|
||||||
|
pwdEdit->setUseCustomPalette(true);
|
||||||
eapTypeCombox = new QComboBox(this);
|
eapTypeCombox = new QComboBox(this);
|
||||||
//TLS
|
//TLS
|
||||||
identityEdit = new LineEdit(this);
|
identityEdit = new LineEdit(this);
|
||||||
|
@ -72,6 +73,7 @@ void SecurityPage::initUI()
|
||||||
clientCertPathCombox = new QComboBox(this);
|
clientCertPathCombox = new QComboBox(this);
|
||||||
clientPrivateKeyCombox = new QComboBox(this);
|
clientPrivateKeyCombox = new QComboBox(this);
|
||||||
clientPrivateKeyPwdEdit = new KPasswordEdit(this);
|
clientPrivateKeyPwdEdit = new KPasswordEdit(this);
|
||||||
|
clientPrivateKeyPwdEdit->setUseCustomPalette(true);
|
||||||
pwdOptionCombox = new QComboBox(this);
|
pwdOptionCombox = new QComboBox(this);
|
||||||
tlsWidget = new QWidget(this);
|
tlsWidget = new QWidget(this);
|
||||||
|
|
||||||
|
@ -79,6 +81,7 @@ void SecurityPage::initUI()
|
||||||
eapMethodCombox = new QComboBox(this);
|
eapMethodCombox = new QComboBox(this);
|
||||||
userNameEdit = new LineEdit(this);
|
userNameEdit = new LineEdit(this);
|
||||||
userPwdEdit = new KPasswordEdit(this);
|
userPwdEdit = new KPasswordEdit(this);
|
||||||
|
userPwdEdit->setUseCustomPalette(true);
|
||||||
userPwdFlagBox = new QCheckBox(this);
|
userPwdFlagBox = new QCheckBox(this);
|
||||||
|
|
||||||
QWidget *queryWidget = new QWidget(this);
|
QWidget *queryWidget = new QWidget(this);
|
||||||
|
|
Loading…
Reference in New Issue