(self, down)
Ctrl+Up/Down pressed, scroll viewport
Ctrl+Up/Down pressed, scroll viewport
Ctrl + Up / Down pressed scroll viewport
def _onShortcutScroll(self, down):
        """Ctrl+Up/Down pressed, scroll viewport
        """
        value = self.verticalScrollBar().value()
        if down:
            value += 1
        else:
            value -= 1
        self.verticalScrollBar().setValue(value)
def _onShortcutScroll ( self , down ) : value = self . verticalScrollBar ( ) . value ( ) if down : value += 1 else : value -= 1 self . verticalScrollBar ( ) . setValue ( value )