mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
more pyqt6 enum goodness
This commit is contained in:
parent
60dcd01a3f
commit
8c7fef9ed1
@ -189,9 +189,8 @@ class PluginModel(QAbstractItemModel, AdaptSQP): # {{{
|
|||||||
|
|
||||||
def flags(self, index):
|
def flags(self, index):
|
||||||
if not index.isValid():
|
if not index.isValid():
|
||||||
return 0
|
return Qt.ItemFlag.NoItemFlags
|
||||||
flags = Qt.ItemFlag.ItemIsSelectable | Qt.ItemFlag.ItemIsEnabled
|
return Qt.ItemFlag.ItemIsSelectable | Qt.ItemFlag.ItemIsEnabled
|
||||||
return flags
|
|
||||||
|
|
||||||
def data(self, index, role):
|
def data(self, index, role):
|
||||||
if not index.isValid():
|
if not index.isValid():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user