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

Method addConstraint

examples/Gantt/legend_example/entrydelegate.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void EntryDelegate::addConstraint(const QModelIndex &index1, const QModelIndex &index2)
87{
88 if (!index1.isValid() || !index2.isValid())
89 return;
90
91 KDGantt::Constraint c(index1, index2);
92 constraintModel->addConstraint(c);
93}

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected