Update mainwindow.cpp
This commit is contained in:
parent
cb496bf670
commit
78260f9a92
|
@ -330,8 +330,8 @@ void MainWindow::createTopWifiUI()
|
||||||
btnAddNet->move(X_BTN_FUN, Y_BTN_FUN);
|
btnAddNet->move(X_BTN_FUN, Y_BTN_FUN);
|
||||||
btnAddNet->setText(tr("Hide WLAN"));//"加入网络"
|
btnAddNet->setText(tr("Hide WLAN"));//"加入网络"
|
||||||
btnAddNet->setStyleSheet(funcBtnQss);
|
btnAddNet->setStyleSheet(funcBtnQss);
|
||||||
int textWith = QFontMetrics(btnAddNet->font()).width(btnAddNet->text());
|
int textWidth = QFontMetrics(btnAddNet->font()).width(btnAddNet->text());
|
||||||
btnAddNet->resize(textWith > W_BTN_FUN ? textWith : W_BTN_FUN, H_BTN_FUN);
|
btnAddNet->resize(textWidth > W_BTN_FUN ? textWidth : W_BTN_FUN, H_BTN_FUN);
|
||||||
btnAddNet->setFocusPolicy(Qt::NoFocus);
|
btnAddNet->setFocusPolicy(Qt::NoFocus);
|
||||||
btnAddNet->show();
|
btnAddNet->show();
|
||||||
connect(btnAddNet,SIGNAL(clicked()),this,SLOT(onBtnAddNetClicked()));
|
connect(btnAddNet,SIGNAL(clicked()),this,SLOT(onBtnAddNetClicked()));
|
||||||
|
|
Loading…
Reference in New Issue