On Thu, 19 Mar 2015 10:09:51 -0500
"Edward K. Ream" <[email protected]> wrote:

> Terry, could you track this down please?

TL;DR: delete all the iconclick* entries from the table at:
http://leoeditor.com/scripting.html#event-handlers

I think the iconclick* handlers are all dead, because clicking the icon
part of a tree node as a distinct action was a Tk concept that doesn't
occur in Qt or GUIs in general.

headclick1 is fired from 
    qt_tree.py-->qtree.Event handlers-->qtree.onItemClicked
which is connected to a Qt event,
    tw.itemClicked.connect(self.onItemClicked)
in
    qt_tree.py-->qtree.Birth-->qtree.initAfterLoad

iconclick1 is fired from
    qt_tree.py-->qtree.Event handlers--> qtree.Icon
Box-->qtree.onIconBoxClick

but onIconBoxClick isn't connected to any Qt event, although it can be
triggered with the command 'click-icon-box' / clickIconBox(), but not
with the mouse.

There's a note in the source
# 2014/02/21: generate headclick1/2 instead of iconclick1/2
but I suspect that prior to that leo-Qt was just firing iconclick1 in
response to a click on a tree node, there's never been any code to see
which part of the node was clicked, which only Tk ever did.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to