Optimisze effect of hover on item
This commit is contained in:
parent
bf4bd4101e
commit
3422d0fcaf
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue