There was a name clash between the signal and the AccelButton.
This work has been sponsored by the City of Munich's LiMux project.
Forward port of kde-workspace ce7746b2dd1426efc627ab17ec8ea9b2eaa1d656
The user switching dialog from the screen locker was destroyed when the
cancel button was pressed. As a result you coudn't open it again.
The screen locker uses a PlasmaComponents.PageStack to show the password input
and user switching dialogs.
When a dialog is popped from the stack it is destroyed by PageStack.
Fix this by turning userSessionsUI into a Component so it is automatically
created.
This work has been sponsored by the City of Munich's LiMux project.
Forward port of kde-workspace 3341db4430026914da4c6b5f90c1ef6920bae9d1
You can now control the player even if it is stopped and kick off playback.
This means that you now just need to have e.g. Amarok running and then you can
at least cause music to play without ever touching the Amarok window.
We can just use onStateChanged directly instead of having a superfluous property.
Also now the plasmoid becomes active immediately but goes passive only after
250ms. Amarok really takes an insanely long time to load the next track.
100ms wasn't enough to prevent flickering all the time. I guess for users without
SSD 250 will also be scarce.
This way you can easily bring your player to the front without needing it to have a
system tray icon and without opening the mediacontroller first
Unfortunately VLC player doesn't support being raised via mpris :(
as a plugin, you don't need to directly reference it in the code; that is what
Plasma::PluginLoader is for and why you make it a plugin in the first place
port the plugin to use the json mechanism
put the packagestructure into its own subdir to keep things a bit tidier
the screen related static methods are just as well served by being
class members: they aren't used elsewhere, were being passed the same
internal datamembers repeatedly, etc.
also move them below the constructor to where they generally make
more contextual sense.