27 #include <QModelIndex> 31 class QAbstractItemModel;
34 class QItemSelectionModel;
42 class ConstraintModel;
45 class AbstractRowController;
50 Q_PRIVATE_SLOT(
d,
void slotCollapsed(
const QModelIndex&) )
51 Q_PRIVATE_SLOT(
d,
void slotExpanded(
const QModelIndex&) )
52 Q_PRIVATE_SLOT(
d,
void slotVerticalScrollValueChanged(
int ) )
53 Q_PRIVATE_SLOT(
d,
void slotLeftWidgetVerticalRangeChanged(
int,
int ) )
54 Q_PRIVATE_SLOT(
d,
void slotGfxViewVerticalRangeChanged(
int,
int ) )
61 QAbstractItemModel* model()
const;
62 QItemSelectionModel* selectionModel()
const;
66 QModelIndex rootIndex()
const;
68 QModelIndex indexAt(
const QPoint& pos )
const;
74 const QSplitter* splitter()
const;
75 QSplitter* splitter();
87 void ensureVisible(
const QModelIndex& index);
89 void print( QPrinter* printer,
bool drawRowLabels=
true,
bool drawColumnLabels=
true );
90 void print( QPrinter* printer, qreal start, qreal end,
bool drawRowLabels=
true,
bool drawColumnLabels=
true );
91 void print( QPainter* painter,
const QRectF& target = QRectF(),
bool drawRowLabels=
true,
bool drawColumnLabels=
true);
92 void print( QPainter* painter, qreal start, qreal end,
93 const QRectF& target = QRectF(),
bool drawRowLabels=
true,
bool drawColumnLabels=
true);
96 void setModel(QAbstractItemModel* model);
97 void setRootIndex(
const QModelIndex& idx );
98 void setSelectionModel( QItemSelectionModel* smodel );
102 void expandAll( QModelIndex index = QModelIndex() );
103 void collapseAll( QModelIndex index = QModelIndex() );
106 void resizeEvent(QResizeEvent*)
override;
#define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(X)
Abstract baseclass for grids. A grid is used to convert between QModelIndex'es and gantt chart values...
Class used to render gantt items in a KDGantt::GraphicsView.
Class only listed here to document inheritance of some KDChart classes.
Class only listed here to document inheritance of some KDChart classes.
The GraphicsView class provides a model/view implementation of a gantt chart.
This widget that consists of a QTreeView and a GraphicsView.
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...