Don't make download items selectable
This commit is contained in:
parent
3e5e8e59c1
commit
a5f71a286d
@ -84,6 +84,12 @@ class DownloadModel(QAbstractListModel):
|
||||
data = QVariant()
|
||||
return data
|
||||
|
||||
def flags(self, index):
|
||||
"""Override flags so items aren't selectable.
|
||||
|
||||
The default would be Qt.ItemIsEnabled | Qt.ItemIsSelectable."""
|
||||
return Qt.ItemIsEnabled
|
||||
|
||||
def rowCount(self, parent):
|
||||
"""Get count of active downloads."""
|
||||
if parent.isValid():
|
||||
|
Loading…
Reference in New Issue
Block a user