MCPcopy Create free account
hub / github.com/KDAB/KDChart / columnCount

Method columnCount

python/examples/reorder/main.py:48–51  ·  view source on GitHub ↗
(self, index=QModelIndex())

Source from the content-addressed store, hash-verified

46 return len(self.tasks)
47
48 def columnCount(self, index=QModelIndex()): # pylint: disable=no-self-use
49 if index.isValid():
50 return 0
51 return 4
52
53 def data(self, index, role=Qt.DisplayRole):
54 if index.isValid() and index.row() < self.rowCount() and index.column() < self.columnCount():

Callers 2

dataMethod · 0.95
addNewEntryMethod · 0.45

Calls 2

QModelIndexClass · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected