From 31b3bca252a4d66f2954e56bb1ae463abf9eb6a7 Mon Sep 17 00:00:00 2001 From: mailchuck Date: Sat, 23 Jan 2016 12:21:58 +0100 Subject: [PATCH] Scroll/zoom in message composing widget Fixes #169 --- src/bitmessageqt/messagecompose.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/messagecompose.py b/src/bitmessageqt/messagecompose.py index ff0849a5..f7d5dac3 100644 --- a/src/bitmessageqt/messagecompose.py +++ b/src/bitmessageqt/messagecompose.py @@ -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('')