11 #ifndef KDGANTTCONSTRAINT_H
12 #define KDGANTTCONSTRAINT_H
15 #include <QModelIndex>
17 #include <QSharedDataPointer>
21 #ifndef QT_NO_DEBUG_STREAM
48 ValidConstraintPen = Qt::UserRole,
54 const QModelIndex &idx2,
56 RelationType relType = FinishStart,
62 RelationType relationType()
const;
63 QModelIndex startIndex()
const;
64 QModelIndex endIndex()
const;
66 void setData(
int role,
const QVariant &value);
67 QVariant data(
int role)
const;
72 bool compareIndexes(
const Constraint &other)
const;
83 #ifndef QT_NO_DEBUG_STREAM
84 QDebug debug(QDebug dbg)
const;
88 QSharedDataPointer<Private>
d;
97 #ifndef QT_NO_DEBUG_STREAM
A class used to represent a dependency.
Type
This enum is unused for now.
bool operator!=(const Constraint &other) const
ConstraintDataRole
Data roles used when specifying the pen to draw constraints with.
QDebug KDGANTT_EXPORT operator<<(QDebug dbg, const KDGantt::Constraint &c)
uint qHash(const Constraint &c)
bool operator==(const Span &s1, const Span &s2)
QMap< int, QVariant > DataMap