Turn off horizontal scrollbar in completer

This commit is contained in:
Florian Bruhin 2014-05-09 19:12:46 +02:00
parent 5a6208862e
commit 6417c7d875
2 changed files with 1 additions and 2 deletions

2
TODO
View File

@ -69,8 +69,6 @@ Bugs
- Tabbar in print dialog has same visual style as main tabbar - Tabbar in print dialog has same visual style as main tabbar
- Sometimes there's a horizontal scrollbar in the completer
- Eliding doesn't work correctly in tabs (cuts off start) - Eliding doesn't work correctly in tabs (cuts off start)
This especially happens when there's no favicon This especially happens when there's no favicon

View File

@ -126,6 +126,7 @@ class CompletionView(QTreeView):
self.setIndentation(0) self.setIndentation(0)
self.setItemsExpandable(False) self.setItemsExpandable(False)
self.setExpandsOnDoubleClick(False) self.setExpandsOnDoubleClick(False)
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
# QTBUG? This is a workaround for weird race conditions with invalid # QTBUG? This is a workaround for weird race conditions with invalid
# item indexes leading to segfaults in Qt. # item indexes leading to segfaults in Qt.
# #