MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / mousePressEvent

Method mousePressEvent

src/bitmessageqt/messageview.py:31–39  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

showHTMLMethod · 0.95
showPlainMethod · 0.95

Tested by

no test coverage detected