This was there to initially populate the dataengine. But since the requests are all
asynchronous the data won't be there on time anyway, so let's just wait until somebody
explicitly requests the source which was done by batterymonitor anyway resulting in two
subsequent calls potentially confusing PowerDevil and causing it to go nuts.
CCBUG: 337674
When an application has posted an inhibition (video playback, presentation, ...)
it will now be shown in the battery monitor with its icon, name and the
reason given by the application.
This adds a new "Inhibitions" source which has keys for each application
(amarok, vlc, ...) and inside a QVariantMap with the pretty application name
(taken from the desktop file through KService and cached localle), the
application icon and the reason for the inhibition (as provided by the app)
REVIEW: 122132
Without org.kde.Solid.PowerManagement service it is completely useless and
cannot do anything, so just vanish in that case, which should hardly ever occur.
Klipper crashes when any modifier key (with the exception of ALT) is pressed.
This is because it enters into an infinite recursion.
This happens because Klipper popup delegates all events to its input field.
The input field does not consume the event, so it is propagated to the parent widget,
which is the popup. The popup tries to send the event to the input field again.
Since klipper is now part of plasma, this bug kills the entire shell
REVIEW: 122106
BUG: 342947
Klipper crashes when any modifier key (with the exception of ALT) is pressed.
This is because it enters into an infinite recursion.
This happens because Klipper popup delegates all events to its input field.
The input field does not consume the event, so it is propagated to the parent widget,
which is the popup. The popup tries to send the event to the input field again.
Since klipper is now part of plasma, this bug kills the entire shell
REVIEW: 122106
BUG: 342947
QObject::destroyed has a QObject* as the argument, screenRemoved takes QScreen* as an argument.
CC: aleixpol@kde.org
(cherry picked from commit e14e0aa2c3)
Amarok sets "Now Playing" title for every notification, which made it
grouped rather than replaced, so group only if the app_name is not in
the "always replace" list.
Reviewed-by: Kai Uwe Broulik
There were situations when the same notification popup could be be
inserted twice into the available popups list, breaking the positioning
as it would create more notifications than it was able to but they would
never get closed and would offset the whole stack.
One of such scenarios was when user manually closed the popup with the
close button. After it was hidden, the hiding timer still went on to
fire and close it again, causing the above.
Should be all fixed now.
BUG: 342605
Rather than just picking a random battery, which could be your mouse, it now
shows the cumulative battery percentage as well as the AC adapter state.
REVIEW: 122044