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
+12
View File
@@ -118,6 +118,7 @@ class GuiOutline(QTreeWidget):
self.colIndex = {}
self.treeNCols = 0
self.initOutline()
self.clearOutline()
self.headerMenu.setHiddenState(self.colHidden)
@@ -125,6 +126,17 @@ class GuiOutline(QTreeWidget):
return
def initOutline(self):
"""Set or update outline settings.
"""
# Scroll bars
if self.mainConf.hideVScroll:
self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
if self.mainConf.hideHScroll:
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
return
def clearOutline(self):
"""Clear the tree and header and set the default values for the
columns arrays.