On Mar 6, 1:06 pm, "Edward K. Ream" <[email protected]> wrote:
> On Tue, Mar 6, 2012 at 12:55 PM, Ville M. Vainio <[email protected]> wrote:
>
> > Well, if you tell to unity that a particular qmenu is the active one, I'm
> > sure it will update the top menu. Not sure how this happens, but 'forcing'
> > doesn't sound like the right word for it
>
> Hmm.  Perhaps that will work.  I'll look into it.

It looks like leoTabbedTopLevel.select is the place to tell unity
about the active qmenu.  The desired qmenu is self.c.frame.menu.

The question is, how, exactly, is Leo supposed to tell unity that
qmenu should be active? Presumably, the answer is at
http://doc.qt.nokia.com/4.7-snapshot/qmenu-members.html, but nothing
jumps out at me.

I doubt that qmenu.activateWindow will work: the window is *already*
active.  And we certainly don't want to call setFocus!

The only strategy that might work is to call qmenu.enable for the
desired menu, and qmenu.disable for all other menus.  I'll try it
first on Windows, and it nothing bad happens I'll experiment on
Ubuntu...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to