bug#97962布局问题 切主题显示更新
This commit is contained in:
parent
b3482dc05e
commit
31dcfd9808
|
@ -209,6 +209,7 @@ void WlanListItem::keyPressEvent(QKeyEvent *event)
|
|||
|
||||
void WlanListItem::initWlanUI()
|
||||
{
|
||||
qDebug() << "new init";
|
||||
m_hasPwd = (m_wirelessNetItem.m_secuType.isEmpty() || m_wirelessNetItem.m_secuType == "") ? false : true;
|
||||
//设置显示的Wlan名称
|
||||
// this->setName((m_wirelessNetItem.m_connName != "") ? m_wirelessNetItem.m_connName : m_wirelessNetItem.m_NetSsid);
|
||||
|
@ -220,6 +221,7 @@ void WlanListItem::initWlanUI()
|
|||
#define CONNECT_BUTTON_WIDTH 96
|
||||
#define FRAME_CONTENT_MARGINS 56,0,16,4
|
||||
#define FRAME_SPACING 8
|
||||
#define LINEEDIT_WIDTH 220
|
||||
#define PWD_CONTENT_MARGINS 8,0,34,0
|
||||
#define SHOW_PWD_BUTTON_SIZE 24,24
|
||||
#define PWD_LAYOUT_MARGINS 8,0,8,0
|
||||
|
@ -231,6 +233,7 @@ void WlanListItem::initWlanUI()
|
|||
m_pwdFrame->setLayout(m_pwdFrameLyt);
|
||||
|
||||
m_pwdLineEdit = new QLineEdit(m_pwdFrame);
|
||||
m_pwdLineEdit->setFixedWidth(LINEEDIT_WIDTH);
|
||||
m_pwdLineEdit->setAttribute(Qt::WA_InputMethodEnabled, false);
|
||||
m_pwdLineEdit->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
|
||||
|
@ -266,6 +269,7 @@ void WlanListItem::initWlanUI()
|
|||
m_connectButton->setEnabled(false);
|
||||
connect(m_connectButton, &QPushButton::clicked, this, &WlanListItem::onConnectButtonClicked);
|
||||
m_pwdFrameLyt->addWidget(m_connectButton);
|
||||
m_pwdFrameLyt->addStretch();
|
||||
|
||||
//自动连接选择区域UI
|
||||
m_autoConnectFrame = new QFrame(this);
|
||||
|
|
|
@ -435,6 +435,7 @@ void MainWindow::onThemeChanged(const QString &key)
|
|||
if (key == COLOR_THEME) {
|
||||
qDebug() << "Received signal of theme changed, will reset theme." << Q_FUNC_INFO << __LINE__;
|
||||
// resetWindowTheme();
|
||||
paintWithTrans();
|
||||
emit qApp->paletteChanged(qApp->palette());
|
||||
} else {
|
||||
qDebug() << "Received signal of theme changed, key=" << key << " will do nothing." << Q_FUNC_INFO << __LINE__;
|
||||
|
|
Loading…
Reference in New Issue