Add option to hide scrollbars on all major GUI areas
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user