Scroll/zoom in message composing widget

Fixes #169
This commit is contained in:
mailchuck 2016-01-23 12:21:58 +01:00 committed by Peter Surda
parent a4c48228fc
commit e6c379cca6

View File

@ -15,8 +15,9 @@ class MessageCompose(QtGui.QTextEdit):
self.zoomOut(1)
zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize
QtGui.QApplication.activeWindow().statusBar().showMessage(QtGui.QApplication.translate("MainWindow", "Zoom level %1%").arg(str(zoom)))
# super will actually automatically take care of zooming
super(MessageCompose, self).wheelEvent(event)
else:
# in QTextEdit, super does not zoom, only scroll
super(MessageCompose, self).wheelEvent(event)
def reset(self):
self.setText('')