Fixing word wrap not being applied correctly
Former-commit-id: b059b2fa47d85ea80dfc2d721f76379b6c5a9526
This commit is contained in:
parent
20b67e53d2
commit
395e4e489f
@ -114,7 +114,7 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
|
||||
font = self.textContent.font()
|
||||
font.setFamily(self.preferences['fontFamily'])
|
||||
font.setPointSize(self.preferences['fontSize'] + self.zoom)
|
||||
self.textContent.setLineWrapMode(self.preferences['wordWrap'])
|
||||
self.textContent.setLineWrapMode(QtGui.QPlainTextEdit.WidgetWidth if self.preferences['wordWrap'] else QtGui.QPlainTextEdit.NoWrap)
|
||||
self.textContent.setFont(font)
|
||||
|
||||
self.actionToggleWrap.setChecked(self.preferences['wordWrap'])
|
||||
@ -219,9 +219,8 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
|
||||
|
||||
|
||||
def onActionToggleWrap(self, wrap):
|
||||
mode = QtGui.QPlainTextEdit.WidgetWidth if wrap else QtGui.QPlainTextEdit.NoWrap
|
||||
self.preferences['wordWrap'] = wrap
|
||||
self.textContent.setLineWrapMode(wrap)
|
||||
self.textContent.setLineWrapMode(QtGui.QPlainTextEdit.WidgetWidth if self.preferences['wordWrap'] else QtGui.QPlainTextEdit.NoWrap)
|
||||
|
||||
|
||||
def onActionHomepage(self):
|
||||
|
Loading…
Reference in New Issue
Block a user