a more dynamic Applet::formFactor()

Giulio Camuffo giuliocamuffo at gmail.com
Sat Sep 25 12:20:12 CEST 2010


Hi,

Developing Grouping Desktop & c. 
(http://userbase.kde.org/Plasma/GroupingDesktop) i came across a limitation as 
regards the form factors. There's a group i developed, FlowGroup, that behaves 
like a panel: it places all the widgets in a row and tipically it has 
a little height. like the systray does with its contents. 
Now, the problem is that if i place this group on a desktop and then i put a 
PopupApplet in it, this will explode because the applet reads the Planar form 
factor from the containment and will want to stay expanded, event if it doesn't 
fit into the group's size.
Can we implement a solution for this? I was thinking we may add a "formFactor" 
property to Containment and make Applet::formFactor() look for the property on 
its ancestors. This way we could remove the hack to make the applets in the 
systray work too. A setProperty("formFactor", Horizontal) in the systray would 
be sufficient.

What do you think?

Greets, Giulio


More information about the Plasma-devel mailing list