On Jul 26, 1:31 pm, "Edward K. Ream" <[email protected]> wrote:
> On Tue, Jul 26, 2011 at 1:24 PM, Terry Brown <[email protected]> wrote:
> > The timer shouldn't be needed - a 'doubleClick1' hook which returns
> > non-None should stop the headline going into edit mode.  If you can
> > make that be the case, all is well.

Done at rev 4437.  As you say, the timer code can be deleted: at
present it is simply disabled.

I'm pretty sure that Qt itself was causing the node to be edited.  The
workaround in the present code is to call c.endEditing if
p.h.startswith('@ujl').  With this code in place you can see the node
briefly entering edit mode before the call to c.endEditing.

This could be called an "infelicity" in Qt: there is no event passed
to the signal-handler, so there is no event for which to call
event.ignore().

Anyway, I think the present code does what you want.  Let me know if
not.

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