QScintilla/Terminal.py

branch
5_2_x
changeset 1589
9f0fef4a4fbe
parent 1565
815eb7a39944
child 1742
c34ac31c84aa
equal deleted inserted replaced
1585:98c4345f856a 1589:9f0fef4a4fbe
493 Protected method to handle wheel events. 493 Protected method to handle wheel events.
494 494
495 @param evt reference to the wheel event (QWheelEvent) 495 @param evt reference to the wheel event (QWheelEvent)
496 """ 496 """
497 if evt.modifiers() & Qt.ControlModifier: 497 if evt.modifiers() & Qt.ControlModifier:
498 if evt.delta()< 0: 498 if evt.delta() < 0:
499 self.zoomOut() 499 self.zoomOut()
500 else: 500 else:
501 self.zoomIn() 501 self.zoomIn()
502 evt.accept() 502 evt.accept()
503 return 503 return
537 elif zoom >= 20: 537 elif zoom >= 20:
538 zoom = 20 538 zoom = 20
539 pinch.setScaleFactor(3.0) 539 pinch.setScaleFactor(3.0)
540 self.zoomTo(zoom) 540 self.zoomTo(zoom)
541 evt.accept() 541 evt.accept()
542
542 def editorCommand(self, cmd): 543 def editorCommand(self, cmd):
543 """ 544 """
544 Public method to perform an editor command. 545 Public method to perform an editor command.
545 546
546 @param cmd the scintilla command to be performed 547 @param cmd the scintilla command to be performed

eric ide

mercurial