kutils: make mouse tracking of KMediaWidget more consistent

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-06-01 22:57:42 +00:00
parent 1e129fc882
commit 50f2be0c63

View file

@ -85,7 +85,7 @@ KMediaWidget::KMediaWidget(QWidget *parent, KMediaOptions options)
if (options & HiddenControls) {
d->m_visible = true;
setMouseTracking(true);
setMouseTracking(false);
}
}
@ -118,6 +118,7 @@ void KMediaWidget::open(const QString path)
killTimer(d->m_timerid);
}
d->m_timerid = startTimer(3000);
setMouseTracking(true);
}
}
@ -370,6 +371,7 @@ void KMediaWidget::_updateFinished()
killTimer(d->m_timerid);
}
_updateControls(true);
setMouseTracking(false);
}
_updatePlay(true);
}