This commit is contained in:
kangshuning 2021-12-28 16:56:27 +08:00
parent af270b5aff
commit 09bc4931d9
1 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@ void RadioItemButton::mousePressEvent(QMouseEvent *event)
m_backgroundColor = qApp->palette().brightText().color();
m_backgroundColor.setAlphaF(0.21);
}
this->repaint();
this->update();
return QPushButton::mousePressEvent(event);
}
@ -157,7 +157,7 @@ void RadioItemButton::mouseReleaseEvent(QMouseEvent *event)
m_backgroundColor = qApp->palette().brightText().color();
m_backgroundColor.setAlphaF(0.18);
}
this->repaint();
this->update();
return QPushButton::mouseReleaseEvent(event);
}
@ -169,7 +169,7 @@ void RadioItemButton::enterEvent(QEvent *event)
m_backgroundColor = qApp->palette().brightText().color();
m_backgroundColor.setAlphaF(0.32);
}
this->repaint();
this->update();
return QPushButton::enterEvent(event);
}
@ -181,7 +181,7 @@ void RadioItemButton::leaveEvent(QEvent *event)
m_backgroundColor = qApp->palette().brightText().color();
m_backgroundColor.setAlphaF(0.18);
}
this->repaint();
this->update();
return QPushButton::leaveEvent(event);
}