kdgantt2
kdganttview.cpp
Go to the documentation of this file.
116 QModelIndex idx = ganttProxyModel.mapFromSource( model->index( 0, 0, leftWidget->rootIndex() ) );
141 for( QModelIndex treewalkidx = pidx; treewalkidx.isValid(); treewalkidx = treewalkidx.parent() ) {
517 void View::print( QPainter* painter, qreal start, qreal end, const QRectF& target, bool drawRowLabels)
QLayout * layout() const
void setSelectionModel(QItemSelectionModel *smodel)
Definition: kdganttview.cpp:375
QItemSelectionModel * selectionModel() const
Definition: kdganttview.cpp:367
virtual void setRootIndex(const QModelIndex &index)
void print(QPrinter *printer, bool drawRowLabels=true)
Definition: kdganttview.cpp:478
virtual void setSelectionModel(QItemSelectionModel *selectionModel)
virtual int rowCount(const QModelIndex &parent) const =0
Class used to render gantt items in a KDGantt::GraphicsView.
Definition: kdganttitemdelegate.h:39
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
QItemSelectionModel * selectionModel() const
This widget that consists of a QTreeView and a GraphicsView.
Definition: kdganttview.h:47
The GraphicsView class provides a model/view implementation of a gantt chart.
Definition: kdganttgraphicsview.h:44
void print(QPrinter *printer, bool drawRowLabels=true)
Definition: kdganttgraphicsview.cpp:684
virtual QSize sizeHint() const
virtual void setModel(QAbstractItemModel *model)
QModelIndex indexBelow(const QModelIndex &index) const
void setVerticalScrollMode(ScrollMode mode)
ConstraintModel * constraintModel() const
Definition: kdganttview.cpp:441
int & rheight()
bool isValid() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
Definition: kdganttglobal.h:207
Abstract baseclass for grids. A grid is used to convert between QModelIndex'es and gantt chart values...
Definition: kdganttabstractgrid.h:40
int width() const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
const GraphicsView * graphicsView() const
Definition: kdganttview.cpp:316
void slotVerticalScrollValueChanged(int)
Definition: kdganttview.cpp:177
void setItemDelegate(QAbstractItemDelegate *delegate)
void setRowController(AbstractRowController *)
Definition: kdganttview.cpp:274
void setMargin(int margin)
bool blockSignals(bool block)
QModelIndex rootIndex() const
void setHeader(QHeaderView *header)
void slotGfxViewVerticalRangeChanged(int, int)
Definition: kdganttview.cpp:193
KDGanttTreeView(QAbstractProxyModel *proxy, QWidget *parent=0)
Definition: kdganttview.cpp:59
KDAB_SCOPED_UNITTEST_SIMPLE(KDGantt, View,"test")
Definition: kdganttview.cpp:545
Definition: kdganttglobal.h:216
void slotLeftWidgetVerticalRangeChanged(int, int)
Definition: kdganttview.cpp:186
QPixmap grabWidget(QWidget *widget, const QRect &rectangle)
Definition: kdganttview_p.h:64
int height() const
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const =0
void show()
QImage toImage() const
virtual void resizeEvent(QResizeEvent *event)
QAbstractItemModel * model() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void slotCollapsed(const QModelIndex &)
Definition: kdganttview.cpp:130
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
Definition: kdganttabstractrowcontroller.h:34
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
void setConstraintModel(ConstraintModel *)
Definition: kdganttview.cpp:433
const QAbstractProxyModel * ganttProxyModel() const
Definition: kdganttview.cpp:446
void slotExpanded(const QModelIndex &)
Definition: kdganttview.cpp:166
singleShot
AbstractRowController * rowController()
Definition: kdganttview_p.h:59
Definition: kdganttview_p.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.