无线网络 连接按钮变蓝文字需反白
This commit is contained in:
parent
921fc4eb88
commit
238b9bed7c
|
@ -620,6 +620,7 @@ void WlanListItem::setConnectButtonState()
|
|||
QPalette btnPal;
|
||||
if (m_connectButton->isEnabled()) {
|
||||
btnPal.setColor(QPalette::Button, ENABLE_BUTTON_COLOR);
|
||||
btnPal.setColor(QPalette::ButtonText, Qt::white);
|
||||
m_connectButton->setPalette(btnPal);
|
||||
} else {
|
||||
btnPal.setColor(QPalette::Button, UNABLE_BUTTON_COLOR);
|
||||
|
|
Loading…
Reference in New Issue