(self, event)
| 39 | super(MessageView, self).mousePressEvent(event) |
| 40 | |
| 41 | def wheelEvent(self, event): |
| 42 | # super will actually automatically take care of zooming |
| 43 | super(MessageView, self).wheelEvent(event) |
| 44 | if (QtGui.QApplication.queryKeyboardModifiers() & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier and event.orientation() == QtCore.Qt.Vertical: |
| 45 | zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize |
| 46 | QtGui.QApplication.activeWindow().statusBar().showMessage(QtGui.QApplication.translate("MainWindow", "Zoom level %1%").arg(str(zoom))) |
| 47 | |
| 48 | def setWrappingWidth(self, width=None): |
| 49 | self.setLineWrapMode(QtGui.QTextEdit.FixedPixelWidth) |
nothing calls this directly
no test coverage detected