Esempio n. 1
0
 def mouseReleaseHelper(w,event):
     if QtCore.Qt.ControlModifier & event.modifiers():
         event2 = {'c':self.c,'w':w.leo_wrapper}
         g.openUrlOnClick(event2)
     else:
         QtGui.QTextBrowser.mouseReleaseEvent(w,event)
Esempio n. 2
0
 def mouseReleaseHelper(w,event):
     # Fix bug 1158269: viewrendered pane goes blank when url clicked.
     # No need to call the base mouseReleaseEvent method.
     event2 = {'c':self.c,'w':w.leo_wrapper}
     g.openUrlOnClick(event2)
Esempio n. 3
0
 def mouseReleaseHelper(w, event):
     # Fix bug 1158269: viewrendered pane goes blank when url clicked.
     # No need to call the base mouseReleaseEvent method.
     event2 = {'c': self.c, 'w': w.leo_wrapper}
     g.openUrlOnClick(event2)
Esempio n. 4
0
 def handleClick(url, w=w):
     import leo.plugins.qt_text as qt_text
     wrapper = qt_text.QTextEditWrapper(w, name='vr-body', c=c)
     event = g.Bunch(c=c, w=wrapper)
     g.openUrlOnClick(event, url=url)
Esempio n. 5
0
 def mouseReleaseHelper(w,event):
     if QtCore.Qt.ControlModifier & event.modifiers():
         event2 = {'c':self.c,'w':w.leo_wrapper}
         g.openUrlOnClick(event2)
     else:
         QtGui.QTextBrowser.mouseReleaseEvent(w,event)
Esempio n. 6
0
 def handleClick(url, w=w):
     event = g.Bunch(c=c, w=w)
     g.openUrlOnClick(event, url=url)
Esempio n. 7
0
 def handleClick(url, w=w):
     event = g.Bunch(c=c, w=w)
     g.openUrlOnClick(event, url=url)