mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kutils: make mouse tracking of KMediaWidget more consistent
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
1e129fc882
commit
50f2be0c63
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue