QScintilla/Terminal.py

changeset 1588
dccffd13be8d
parent 1566
0cb791cc631a
child 1739
db21de268131
equal deleted inserted replaced
1587:714a3627a089 1588:dccffd13be8d
497 Protected method to handle wheel events. 497 Protected method to handle wheel events.
498 498
499 @param evt reference to the wheel event (QWheelEvent) 499 @param evt reference to the wheel event (QWheelEvent)
500 """ 500 """
501 if evt.modifiers() & Qt.ControlModifier: 501 if evt.modifiers() & Qt.ControlModifier:
502 if evt.delta()< 0: 502 if evt.delta() < 0:
503 self.zoomOut() 503 self.zoomOut()
504 else: 504 else:
505 self.zoomIn() 505 self.zoomIn()
506 evt.accept() 506 evt.accept()
507 return 507 return
541 elif zoom >= 20: 541 elif zoom >= 20:
542 zoom = 20 542 zoom = 20
543 pinch.setScaleFactor(3.0) 543 pinch.setScaleFactor(3.0)
544 self.zoomTo(zoom) 544 self.zoomTo(zoom)
545 evt.accept() 545 evt.accept()
546
546 def editorCommand(self, cmd): 547 def editorCommand(self, cmd):
547 """ 548 """
548 Public method to perform an editor command. 549 Public method to perform an editor command.
549 550
550 @param cmd the scintilla command to be performed 551 @param cmd the scintilla command to be performed

eric ide

mercurial