tasks applet: group popup

Christian Mollekopf chrigi_1 at fastmail.fm
Tue Feb 24 20:30:26 CET 2009


On Tuesday 24 February 2009 00:05:53 Christian Mollekopf wrote:
> Hi,
>
> I already started with the popup and it seems to work quite nicely, but i
> would like to have your comments on how i intend to go on.
>
> According to marcos suggestions i'm currently displaying a LayoutWidget in
> a Plasma::Dialog which leads to a similar result as the current popupMenu.
>
> Since drag and drop is handled in the TaskGroupItem i intend to extract the
> D&D stuff, put it into a seperate class which TaskGroupItem then can
> inherit.
>
> The popupMenu becomes a qgraphicswidget which also inheriths the D&D class
> and additionally manages when to close the popup because of focus change
> etc.
>

Hi,
i'm not sure anymore if this would be the best way to go.
The background painting would also have to be duplicated and everything would 
become a bit complicated.

I asked myself if it would be a good idea to have a stupid container widget in 
the expanded parent group normally which only contains the child 
taskGroupItem. 
So normally everything would stay the same exept there is an addtional widget 
between expanded parent and the collapsed child group.

If we want to show the popup we can simply remove the taskgroupItem from it's 
container widget, which serves now as a spacekeeper, and place it offscreen.
Then we can show it in a dialog as popup and we can have D&D and background 
etc. for free.

Since i'm totally unexperienced with such stuff it would be nice if someone 
could tell me if this could work or rather not.

Thanks =)



More information about the Plasma-devel mailing list