| 29 | self.setWrappingWidth(event.size().width()) |
| 30 | |
| 31 | def mousePressEvent(self, event): |
| 32 | #text = textCursor.block().text() |
| 33 | if event.button() == QtCore.Qt.LeftButton and self.html and self.html.has_html and self.cursorForPosition(event.pos()).block().blockNumber() == 0: |
| 34 | if self.mode == MessageView.MODE_PLAIN: |
| 35 | self.showHTML() |
| 36 | else: |
| 37 | self.showPlain() |
| 38 | else: |
| 39 | super(MessageView, self).mousePressEvent(event) |
| 40 | |
| 41 | def wheelEvent(self, event): |
| 42 | # super will actually automatically take care of zooming |