Optimisze effect of hover on item

This commit is contained in:
chenlelin 2021-02-27 11:39:51 +08:00
parent bf4bd4101e
commit 3422d0fcaf
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ bool OneConnForm::eventFilter(QObject *obj, QEvent *event)
} else if (obj == this) {
if(event->type() == QEvent::HoverEnter) {
if (!this->isTopItem) {
if (!this->isSelected && mw->currSelNetName.isEmpty()) {
if (!this->isSelected) {
ui->btnConn->show();
ui->wbg->setStyleSheet("#wbg{border-radius:4px;background-color:rgba(156,156,156,0.1);}");
ui->wbg->show();

View File

@ -131,7 +131,7 @@ bool OneLancForm::eventFilter(QObject *obj, QEvent *event)
} else if (obj == this) {
if (event->type() == QEvent::HoverEnter) {
if (!this->isTopItem) {
if (!this->isSelected && mw->currSelNetName.isEmpty()) {
if (!this->isSelected) {
ui->btnConn->show();
ui->wbg_2->setStyleSheet("#wbg_2{border-radius:4px;background-color:rgba(156,156,156,0.1);}");
ui->wbg_2->show();