1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class StringListModel(QAbstractListModel):
def __init__(self, strings, parent=None):
...
def rowCount(self, parent=QModelIndex()):
...
def data(self, index, role):
...
def headerData(self, section, orientation, role=Qt.DisplayRole):
...
def flags(self, index):
...
def setData(self, index, value, role=Qt.EditRole):
...
def insertRows(self, position, rows, parent):
...
def removeRows(self, position, rows, parent):
...
|