Fixed: The problem of being blocked in English mode of 'Hide WLAN'
解决'加入网络'英文模式下文字被遮挡的问题 bug:61783
This commit is contained in:
parent
00e1642cc8
commit
cb496bf670
|
@ -327,10 +327,11 @@ void MainWindow::createTopWifiUI()
|
||||||
lbTopWifiList->show();
|
lbTopWifiList->show();
|
||||||
/*新建有线网按钮*/
|
/*新建有线网按钮*/
|
||||||
btnAddNet = new QPushButton(topWifiListWidget);
|
btnAddNet = new QPushButton(topWifiListWidget);
|
||||||
btnAddNet->resize(W_BTN_FUN, H_BTN_FUN);
|
|
||||||
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());
|
||||||
|
btnAddNet->resize(textWith > W_BTN_FUN ? textWith : 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