once set the hint has to be updated on form factor switch (e.g. when the
applet is moved from the desktop to panel or vice-versa)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
by getting the preferred size hint from the actual applet widget and
returning the result of Plasma::PopupApplet::sizeHint() otherwise (both
Plasma::PopupApplet::sizeHint() and Plasma::applet::sizeHint() do hints
trickery based on form factor and such) a lot of assumptions other bits
make are fullfilled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Plasma::Applet::init() and Plasma::Applet::constraintsEvent() may be called
in order such that the members were not created yet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
now with separate options for screen and sleep power management
suppression as well as being able to select which battery to show
information (including icon) for in the tray:
https://ibb.co/DDC01rh
the battery icon is questionably bigger than it should be, have to test
it with battery that is recognizable still (PS3 controller battery
provides only capacity and status info)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>