Commit graph

23 commits

Author SHA1 Message Date
Ivailo Monev
d69a9ac73b kutils: introduce KMediaWidget::resetControlsTimer()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-01 23:43:25 +00:00
Ivailo Monev
50f2be0c63 kutils: make mouse tracking of KMediaWidget more consistent
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-01 22:57:42 +00:00
Ivailo Monev
1e129fc882 kutils: fix hidden media controls bugs and declare API as stable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-01 21:59:08 +00:00
Ivailo Monev
09423d9589 ktuls: overhaul media classes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-24 20:29:43 +00:00
Ivailo Monev
8a50a80c4e kutils: minor media classes and documentation review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-12-19 05:56:33 +00:00
Ivailo Monev
0c12ff6ce8 kutils: avoid use of delete on QObject derived classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-21 21:29:22 +00:00
Ivailo Monev
8f1b574050 kutils: improve the position slider and hidden controls behaviour
now when the slider is being dragged the player does not continuesly seek,
it does it only when the slider is released to avoid bad noise during the
quick seeking.

also, the controls will not be hidden now while any of the controls is
being pressed by the user, it's still not perfect because once the user
releases it the controls will be hidden and then (most likely) shown again
(unless no mouse was used for the interactive, e.g. tab for selection and
then space for interaction) but that will require even more connections
to the controls so I'm leaving it as is for now.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-21 18:43:47 +00:00
Ivailo Monev
293536b688 kutils: const-fy the media classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-21 17:58:44 +00:00
Ivailo Monev
e73768a99a kutils: hide private members of media widget class behind KMediaWidgetPrivate
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-19 05:54:39 +00:00
Ivailo Monev
36072e6f92 generic: remove now redundant QT_KATIE guards
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-13 22:43:04 +00:00
Ivailo Monev
f006ffc089 kutils: fix a race in controls handler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-13 15:03:25 +00:00
Ivailo Monev
17bdb396ea kutils: remove redudnant controls visibility variable
this improves on https://github.com/fluxer/kdelibs/commit/8e9028c4 because
it takes the initial state (so to say) into account (m_visible was not set
on initialization)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-12 09:48:04 +00:00
Ivailo Monev
66aa3a1ca4 kutils: provide minimum size hint for KMediaWidget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-29 16:26:12 +00:00
Ivailo Monev
3b18e56da7 kutils: attempt to set the statusbar text too when window is KMainWidnow
the change is questionable, the application may have different use case
for it but with this change it displays errors and currently played path
title which is kinda usefull if there is no window manager at all

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-29 06:34:46 +00:00
Ivailo Monev
8e9028c480 kutils: make emision of controls signal reliable for external use
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-29 06:32:50 +00:00
Ivailo Monev
ab4de0a79e kutils: fix fail to do fullscreen without parent window after doing it once
basicly once the hack is used m_parent becomes valid widget, to avoid using
it the second time fullscreen is requested just set it to NULL thus making
it invalid and the hack will be used again

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-29 05:45:29 +00:00
Ivailo Monev
dd06909ffb kutils: when the parent widget is KMainWindow use setCaption() to set title
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 06:32:39 +00:00
Ivailo Monev
05dd897b78 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 03:17:36 +00:00
Ivailo Monev
73d50c52e9 kutils: for some media classes bugs
one bug was that replay was not possible after sucessfull finish, another
one was that controls remained hidden after finish because path is empty
and finally the play/pause button was not update on finish because MPV does
not emit the event on finish (noted in the API docs)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 04:43:58 +00:00
Ivailo Monev
3d92b0104f generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 03:23:43 +00:00
Ivailo Monev
a26021c35c kutils: rework some parts of the media classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-23 04:16:54 +00:00
Ivailo Monev
003bfe1da1 kutils: add more paranoia checks to KMediaWidget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 23:16:57 +00:00
Ivailo Monev
d398932909 generic: drop Phonon in favour of MPV and custom player classes
kcompactdisc was remove because there is no use for it in the
current set of applications supported, if it is needed it will
need some work to make it use KMediaPlayer or whatever.

the Plasma VideoWidget class was dropped because custom widgets
(at some point) will be dropped unless absolutely needed and
hopefully getting rid of the heavy-weight QML stuff.

the new KMediaPlayer and KMediaWidgets classes are experimental
but they have been tested and they work as they should.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 02:43:02 +00:00