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

Method __init__

python/examples-qt6/reorder/main.py:32–41  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

30 self.end = QDateTime()
31
32 def __init__(self, parent=None):
33 super().__init__(parent)
34 self.tasks = []
35
36 for i in range(0, 6, 2):
37 task = self.Task()
38 task.title = "Item " + str(len(self.tasks) + 1)
39 task.start = QDateTime.currentDateTime().addDays(i)
40 task.end = task.start.addDays(1)
41 self.tasks.append(task)
42
43 def rowCount(self, index=QModelIndex()):
44 if index.isValid():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected