Don't make download items selectable
This commit is contained in:
parent
3e5e8e59c1
commit
a5f71a286d
@ -84,6 +84,12 @@ class DownloadModel(QAbstractListModel):
|
|||||||
data = QVariant()
|
data = QVariant()
|
||||||
return data
|
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):
|
def rowCount(self, parent):
|
||||||
"""Get count of active downloads."""
|
"""Get count of active downloads."""
|
||||||
if parent.isValid():
|
if parent.isValid():
|
||||||
|
Loading…
Reference in New Issue
Block a user