Exemplo n.º 1
0
 def event(self, ev):
     if ev.type() == ev.Gesture:
         swipe = ev.gesture(Qt.SwipeGesture)
         if swipe is not None:
             self.handle_swipe(swipe)
             return True
     return QWebView.event(self, ev)
Exemplo n.º 2
0
 def event(self, ev):
     if ev.type() == ev.Gesture:
         swipe = ev.gesture(Qt.SwipeGesture)
         if swipe is not None:
             self.handle_swipe(swipe)
             return True
     return QWebView.event(self, ev)
Exemplo n.º 3
0
        def event ( self, event ):
            """ Handles an event for the object.
            """
            if event.type() in ClickEvents:
                self._editor.middle_button = (event.button() == Qt.MidButton)

            return QWebView.event( self, event )
Exemplo n.º 4
0
 def event(self, ev):
     if self.gesture_handler(ev):
         return True
     return QWebView.event(self, ev)