10377:9f6ffcd1db54 | 10378:cbbcecf9b25e |
---|---|
85 if parent is None: | 85 if parent is None: |
86 parent = QModelIndex() | 86 parent = QModelIndex() |
87 | 87 |
88 item = parent.internalPointer() if parent.isValid() else self.rootItem | 88 item = parent.internalPointer() if parent.isValid() else self.rootItem |
89 | 89 |
90 return item.columnCount() + 1 | 90 return item.columnCount() |
91 | 91 |
92 def data(self, index, role): | 92 def data(self, index, role): |
93 """ | 93 """ |
94 Public method to get data of an item. | 94 Public method to get data of an item. |
95 | 95 |