Add option to hide scrollbars on all major GUI areas

This commit is contained in:
Veronica K. B. Olsen
2020-10-11 16:40:54 +02:00
parent 80e8788baa
commit fe71353198
8 changed files with 68 additions and 2 deletions
+6
View File
@@ -124,6 +124,12 @@ class GuiDocViewer(QTextBrowser):
theOpt.setAlignment(Qt.AlignJustify)
self.qDocument.setDefaultTextOption(theOpt)
# Scroll bars
if self.mainConf.hideVScroll:
self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
if self.mainConf.hideHScroll:
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
# Refresh the tab stops
if self.mainConf.verQtValue >= 51000:
self.setTabStopDistance(self.mainConf.getTabWidth())