[Panel-devel] [PATCH] tooltips + taskbar thumbnails

Jason Stubbs jasonbstubbs at gmail.com
Fri Dec 28 03:26:35 CET 2007


On Friday 28 December 2007 10:56:28 Aaron J. Seigo wrote:
> On Thursday 27 December 2007, Jason Stubbs wrote:
> > On Thursday 27 December 2007 16:50:59 JST, Chani wrote:
> > > having applet menu options in the task context menu would be much less
> > > ugly, of course. the problem I see (from briefly glancing at the code)
> > > is that the task management code currently hands us a TaskRMBMenu,
> > > instead of something we can easily add to like a list of QActions...
> >
> > As chatted about on IRC, I've worked up a patch that adds a new virtual
> > to Applet that can be overridden to return a menu based on a given point.
> > The
>
> why not just add a QPoint& to contextActions?

That's what I was originally thinking to do. However, that would mean that the 
task's context menu would essentially be appended to the applet's rather than 
the applet's context menu becoming a submenu of task's, which I thought may 
be a little bit confusing.

There's also the issue of object ownership. TaskRMBMenu is essentially 
designed to be a throw away menu but contextActions is designed so that 
actions are owned and managed by the applet. With a lot of refactoring 
TaskRMBMenu could be made to fit into that, but I figure that this issue is 
bound to crop up again.

-- 
Jason Stubbs


More information about the Panel-devel mailing list