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

Method Node

examples/Gantt/project/projectmodel.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130static int unnamed_count = 0;
131
132ProjectModel::Node::Node(Node *parent)
133 : m_parent(parent)
134 , m_start(QDateTime::currentDateTime())
135 , m_end(QDateTime::currentDateTime().addDays(1))
136 , m_label(tr("Unnamed task %1").arg(++unnamed_count))
137{
138 if (m_parent)
139 m_parent->addChild(this);
140}
141
142ProjectModel::Node::~Node()
143{

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.80

Tested by

no test coverage detected