On Tuesday, February 25, 2014 7:39:00 PM UTC+10, Fidel N wrote: > > Just checked the qt documentation, it could be done like this: > > void QWebView::selectionChanged() [signal] > > This signal is emitted whenever the selection changes -> Link this signal > to the following function > selectedText : const > QString<http://qt-project.org/doc/qt-5.0/qtcore/qstring.html> > > > When the signal selectionChanged is fired, we would get "selectedText", > and find the node that contains that text, then select that node in Leo > Interesting ideas - maybe some trickery can be done after all. However, I wouldn't like it to interfere with the ability to copy html from the rendered window by selecting text and pressing ctl-C. But there might be a control-click signal or some other way we can distinguish the desire to jump back to the node.
Please have a read of my other post "viewrendered2 plugin" for the overview of this plugin and how it works (and possibly try it out). It might fire up some more ideas on other tricks that might be played. Peter. -- 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 leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.