mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-19 20:13:20 +02:00
Add alternating row colors
This commit is contained in:
parent
bf6fb95141
commit
0490b9bccf
1 changed files with 2 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ class FilesView(QTableView):
|
|||
def __init__(self, model, parent=None):
|
||||
QTableView.__init__(self, parent)
|
||||
self.setSelectionBehavior(self.SelectRows), self.setSelectionMode(self.ExtendedSelection)
|
||||
self.setAlternatingRowColors(True)
|
||||
self.setSortingEnabled(True)
|
||||
self.proxy = p = ProxyModel(self)
|
||||
p.setSourceModel(model)
|
||||
|
|
@ -816,6 +817,7 @@ def __init__(self, parent=None):
|
|||
self.proxy = p = CSSProxyModel(self)
|
||||
p.setSourceModel(m)
|
||||
self.view = f = QTreeView(self)
|
||||
f.setAlternatingRowColors(True)
|
||||
f.setHeaderHidden(True), f.setExpandsOnDoubleClick(False)
|
||||
f.setModel(p)
|
||||
l.addWidget(f)
|
||||
|
|
|
|||
Loading…
Reference in a new issue