Merge pull request #625 from vkbo/issue623_justify_prefs
Fix issue #623
This commit is contained in:
@@ -532,7 +532,7 @@ class GuiConfigEditLayoutTab(QWidget):
|
|||||||
|
|
||||||
## Justify Text
|
## Justify Text
|
||||||
self.textJustify = QSwitch()
|
self.textJustify = QSwitch()
|
||||||
self.textJustify.setChecked(self.mainConf.textFixedW)
|
self.textJustify.setChecked(self.mainConf.doJustify)
|
||||||
self.mainForm.addRow(
|
self.mainForm.addRow(
|
||||||
"Justify the text margins in editor and viewer",
|
"Justify the text margins in editor and viewer",
|
||||||
self.textJustify,
|
self.textJustify,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ margin = 45
|
|||||||
tabwidth = 45
|
tabwidth = 45
|
||||||
focuswidth = 900
|
focuswidth = 900
|
||||||
hidefocusfooter = True
|
hidefocusfooter = True
|
||||||
justify = False
|
justify = True
|
||||||
autoselect = False
|
autoselect = False
|
||||||
autoreplace = False
|
autoreplace = False
|
||||||
repsquotes = True
|
repsquotes = True
|
||||||
|
|||||||
@@ -140,9 +140,9 @@ def testGuiPreferences_Main(qtbot, monkeypatch, fncDir, outDir, refDir):
|
|||||||
assert tabLayout.hideFocusFooter.isChecked()
|
assert tabLayout.hideFocusFooter.isChecked()
|
||||||
|
|
||||||
qtbot.wait(keyDelay)
|
qtbot.wait(keyDelay)
|
||||||
assert tabLayout.textJustify.isChecked()
|
|
||||||
qtbot.mouseClick(tabLayout.textJustify, Qt.LeftButton)
|
|
||||||
assert not tabLayout.textJustify.isChecked()
|
assert not tabLayout.textJustify.isChecked()
|
||||||
|
qtbot.mouseClick(tabLayout.textJustify, Qt.LeftButton)
|
||||||
|
assert tabLayout.textJustify.isChecked()
|
||||||
|
|
||||||
qtbot.wait(keyDelay)
|
qtbot.wait(keyDelay)
|
||||||
assert tabLayout.scrollPastEnd.isChecked()
|
assert tabLayout.scrollPastEnd.isChecked()
|
||||||
|
|||||||
Reference in New Issue
Block a user