Fix QWidget::enterEvent with Qt 6

This commit is contained in:
Jonas Kvinge
2020-09-05 19:20:43 +02:00
parent 31dd910289
commit 73692797dc
8 changed files with 49 additions and 10 deletions

View File

@@ -342,7 +342,11 @@ void VolumeSlider::paintEvent(QPaintEvent*) {
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void VolumeSlider::enterEvent(QEnterEvent*) {
#else
void VolumeSlider::enterEvent(QEvent*) {
#endif
m_animEnter = true;
m_animCount = 0;