mailchuck / PyBitmessage

This repository has been discontinued, please use the official PyBitmessage repository

Home Page:https://github.com/Bitmessage/PyBitmessage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font size change

PeterSurda opened this issue · comments

Code came in through BM. Put into messageview.py (perhaps change to wheelEvent instead of mousePressEvent):

def mousePressEvent(self, event):
    #text = textCursor.block().text()
    if event.button() == QtCore.Qt.LeftButton and event.modifiers() != QtCore.Qt.ControlModifier and event.modifiers() != QtCore.Qt.ShiftModifier and self.html.has_html and self.cursorForPosition(event.pos()).block().blockNumber() == 0:
        if self.mode == MessageView.MODE_PLAIN:
            self.showHTML()
        else:
            self.showPlain()
    else:
         if event.button() == QtCore.Qt.LeftButton and event.modifiers() == QtCore.Qt.ControlModifier:
            QtGui.QTextBrowser.zoomOut(self, 1)
        else:
            if event.button() == QtCore.Qt.LeftButton and event.modifiers() == QtCore.Qt.ShiftModifier:
                QtGui.QTextBrowser.zoomIn(self, 1)
            else:
                super(MessageView, self).mousePressEvent(event)

The message compose widgets should also zoom.