示例#1
0
 def flags(self, index):
     if not index.isValid():
         return Qt.ItemIsEnabled
     column = index.column()
     if column in (MOD1, MOD2, MOD3, KEY):
         return Qt.ItemFlags(
             QAbstractTableModel.flags(self, index) | Qt.ItemIsEditable)
     else:
         return Qt.ItemFlags(QAbstractTableModel.flags(self, index))
示例#2
0
文件: shortcuts.py 项目: benjello/ga
 def flags(self, index):
     if not index.isValid():
         return Qt.ItemIsEnabled
     column = index.column()
     if column in (MOD1, MOD2, MOD3, KEY):
         return Qt.ItemFlags(QAbstractTableModel.flags(self, index)|
                             Qt.ItemIsEditable)
     else:
         return Qt.ItemFlags(QAbstractTableModel.flags(self, index))
示例#3
0
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.shortcuts = []
示例#4
0
文件: shortcuts.py 项目: benjello/ga
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.shortcuts = []