kdgantt
KDGantt::View Class Reference
#include <KDGanttView>

Detailed Description
This widget that consists of a QTreeView and a GraphicsView.This is the easy to use, complete gantt chart widget. It consists of a QTreeView on the left and a KDGantt::GraphicsView on the right separated by a QSplitter. The two views share the same model.
Definition at line 45 of file kdganttview.h.
Public Slots | |
| void | setConstraintModel (ConstraintModel *) |
| void | setGrid (AbstractGrid *) |
| void | setItemDelegate (ItemDelegate *) |
| void | setModel (QAbstractItemModel *model) |
| void | setRootIndex (const QModelIndex &idx) |
| void | setSelectionModel (QItemSelectionModel *smodel) |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *) |
Member Function Documentation
| void View::resizeEvent | ( | QResizeEvent * | ev | ) | [protected] |
| void View::setConstraintModel | ( | ConstraintModel * | cm | ) | [slot] |
Sets the constraintmodel displayed by this view.
- See also:
- KDGantt::ConstraintModel.
Definition at line 391 of file kdganttview.cpp.
| void View::setGrid | ( | AbstractGrid * | grid | ) | [slot] |
Sets the AbstractGrid for this view. The grid is an object that controls how QModelIndexes are mapped to and from the view and how the background and header is rendered.
- See also:
- AbstractGrid and DateTimeGrid.
Definition at line 344 of file kdganttview.cpp.
| void View::setItemDelegate | ( | ItemDelegate * | delegate | ) | [slot] |
Sets the KDGantt::ItemDelegate used for rendering items on this view.
- See also:
- ItemDelegate and QAbstractItemDelegate.
Definition at line 382 of file kdganttview.cpp.
| void View::setModel | ( | QAbstractItemModel * | model | ) | [slot] |
Sets the QAbstractItemModel to be displayed in this view to model.
- See also:
- GraphicsView::setModel
Definition at line 316 of file kdganttview.cpp.
| void View::setRootIndex | ( | const QModelIndex & | idx | ) | [slot] |
Sets the root index of the model displayed by this view. Similar to QAbstractItemView::setRootIndex, default is QModelIndex().
Definition at line 366 of file kdganttview.cpp.
| void View::setSelectionModel | ( | QItemSelectionModel * | smodel | ) | [slot] |
Sets the QItemSelectionModel used by this view to manage selections. Similar to QAbstractItemView::setSelectionModel
Definition at line 333 of file kdganttview.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference