Commit graph

12 commits

Author SHA1 Message Date
Ivailo Monev
ebde34f06c plasma: call the base class init() method
Plasma::Applet::init() marks the applets as movable items for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 02:03:22 +03:00
Ivailo Monev
3a8a39a896 plasma: update systemtray applet arrow when its layout orientation changes
for the case when the panel is moved from one screen edge to other for
example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 06:22:48 +02:00
Ivailo Monev
56cf42f744 plasma: take popup status into account in SystemTrayApplet::slotShowHidden()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 15:58:02 +03:00
Ivailo Monev
4ebf69bf84 plasma: destroy and load applets conditionally in systemtray applet
mostly to avoid resizing of the systemtray applet due to popup applets
(when loaded/added the initial popup applets size may be big and then
shrinked to icon depending on the applet minimum size)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 08:31:47 +03:00
Ivailo Monev
40675886b2 plasma: ensure applets have preferred size in systemtray applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 07:42:49 +03:00
Ivailo Monev
ac329a2b24 plasma: check popup status on Plasma::Applet::activate() signal
not always emitted by Plasma::PopupAppletPrivate::internalTogglePopup() tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 07:00:17 +03:00
Ivailo Monev
12fd5b63e7 plasma: save applets state before deleting them in systemtray applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 20:52:43 +03:00
Ivailo Monev
d5f68610e6 plasma: fix systemtray deadlock
the applet has to be disconnected because when the applet is destroyed (by
the qDeleteAll() call) it triggers layout update

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 20:36:05 +03:00
Ivailo Monev
e728419f56 plasma: update systemtray layout on ksycoca database change
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 20:25:27 +03:00
Ivailo Monev
20daf2594c plasma: check popup status of applets in systemtray applet
this is special case for (notably) passive popups (such as the
notifications applet which has not only automatic popup but also sticks
until deactivated), to do that optimally a signal from
Plasma::PopupApplet::popupEvent() may be emitted in the future so that the
popup status is not checked on timer.

on a side note the old systemtray applet did not handle that case properly
and the notifications applet was not hidden sometimes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 14:44:48 +03:00
Ivailo Monev
e51cf82b56 plasma: create systemtray applet arrow icon on layout update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:48:02 +03:00
Ivailo Monev
1cad595824 generic: drop scripting support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:14:30 +03:00