a more dynamic Applet::formFactor()

Marco Martin notmart at gmail.com
Sat Sep 25 12:51:57 CEST 2010


On Saturday 25 September 2010, Giulio Camuffo wrote:
> 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.

i'm not sure formfactors should be freely assigned, they are born as the 
containment formfactor.
in your case it should be the containment that is Horizontal i think (even 
fixing horizontal regardless of the location, so even in the desktop)

-- 
Marco Martin


More information about the Plasma-devel mailing list