11 #ifndef KDGANTTCONSTRAINTMODEL_H
12 #define KDGANTTCONSTRAINTMODEL_H
15 #include <QModelIndex>
34 virtual void addConstraint(
const Constraint &c);
35 virtual bool removeConstraint(
const Constraint &c);
40 QList<Constraint> constraints()
const;
43 inline bool hasConstraint(
const QModelIndex &s,
44 const QModelIndex &e)
const;
46 QList<Constraint> constraintsForIndex(
const QModelIndex &)
const;
56 inline const ConstraintModel::Private *ConstraintModel::d_func()
const
60 inline ConstraintModel::Private *ConstraintModel::d_func()
70 #ifndef QT_NO_DEBUG_STREAM
The ConstraintModel keeps track of the interdependencies between gantt items in a View.
bool hasConstraint(const Constraint &c) const
Returns true if a Constraint with start s and end e exists, otherwise false.
void constraintRemoved(const KDGantt::Constraint &)
void constraintAdded(const KDGantt::Constraint &)
A class used to represent a dependency.
QDebug KDGANTT_EXPORT operator<<(QDebug dbg, const KDGantt::ConstraintModel &model)
#define KDGANTT_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)