12 #include "kdganttabstractgrid_p.h"
158 #include "moc_kdganttabstractgrid.cpp"
~AbstractGrid() override
Destructor.
virtual Span mapToChart(const QModelIndex &idx) const =0
Implement this to map from the data in the model to the location of the corresponding item in the vie...
QAbstractItemModel * model() const
virtual void setRootIndex(const QModelIndex &idx)
Sets the root index used by this grid implementation.
virtual void drawForeground(QPainter *paint, const QRectF &rect)
virtual void drawBackground(QPainter *paint, const QRectF &rect)
bool isSatisfiedConstraint(const Constraint &c) const
QModelIndex rootIndex() const
virtual void setModel(QAbstractItemModel *model)
Sets the QAbstractItemModel used by this grid implementation.
AbstractGrid(QObject *parent=nullptr)
Constructor.
virtual bool mapFromChart(const Span &span, const QModelIndex &idx, const QList< Constraint > &constraints=QList< Constraint >()) const =0
Implement this to update the model data based on the location of the item.
A class used to represent a dependency.
QModelIndex endIndex() const
QModelIndex startIndex() const
A class representing a start point and a length.