kdgantt
KDGantt::View Class Reference
This widget that consists of a QTreeView and a GraphicsView. More...
#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 44 of file kdganttview.h.
Constructor & Destructor Documentation
| View::View | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructor. Creates a View with parent parent, a DateTimeGrid as default grid implementaion and no model etc.
Definition at line 191 of file kdganttview.cpp.
| View::~View | ( | ) | [virtual] |
Definition at line 201 of file kdganttview.cpp.
Member Function Documentation
| ConstraintModel * View::constraintModel | ( | ) | const |
- Returns:
- the KDGantt::ConstraintModel displayed by this view.
Definition at line 400 of file kdganttview.cpp.
| QAbstractProxyModel * View::ganttProxyModel | ( | ) |
Definition at line 410 of file kdganttview.cpp.
| const QAbstractProxyModel * View::ganttProxyModel | ( | ) | const |
Definition at line 405 of file kdganttview.cpp.
| GraphicsView * View::graphicsView | ( | ) |
Definition at line 300 of file kdganttview.cpp.
| const GraphicsView * KDGantt::View::graphicsView | ( | ) | const |
- Returns:
- a pointer to the GraphicsView
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 292 of file kdganttview.cpp.
| AbstractGrid * View::grid | ( | ) | const |
- Returns:
- the AbstractGrid used by this view.
Definition at line 352 of file kdganttview.cpp.
| QModelIndex View::indexAt | ( | const QPoint & | pos | ) | const |
- Returns:
- The QModelIndex for the item located at position pos in the view or an invalid index if no item was present at that position.
- See also:
- GraphicsView::indexAt
Definition at line 426 of file kdganttview.cpp.
| ItemDelegate * View::itemDelegate | ( | ) | const |
- Returns:
- the ItemDelegate used by this view to render items
Definition at line 375 of file kdganttview.cpp.
| QAbstractItemView * View::leftView | ( | ) |
Definition at line 284 of file kdganttview.cpp.
| const QAbstractItemView * KDGantt::View::leftView | ( | ) | const |
- Returns:
- a pointer to the QAbstractItemView in the left part of the widget.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 276 of file kdganttview.cpp.
| QAbstractItemModel * View::model | ( | ) | const |
- Returns:
- the current model displayed by this view
Definition at line 307 of file kdganttview.cpp.
| void View::print | ( | QPainter * | painter, | |
| const QRectF & | target = QRectF(), |
|||
| const QRectF & | source = QRectF(), |
|||
| bool | drawRowLabels = true, |
|||
| bool | drawHeader = true | |||
| ) |
Render the GanttView inside the rectangle target using the painter painter.
- See also:
- KDGantt::GraphicsView::print(QPainter* painter, const QRectF& target,bool drawRowLabels)
Definition at line 434 of file kdganttview.cpp.
| void View::resizeEvent | ( | QResizeEvent * | ev | ) | [protected] |
Reimplemented from QWidget.
Definition at line 415 of file kdganttview.cpp.
| QModelIndex View::rootIndex | ( | ) | const |
- Returns:
- the rootindex for this view.
Definition at line 359 of file kdganttview.cpp.
| const AbstractRowController * View::rowController | ( | ) | const |
Definition at line 267 of file kdganttview.cpp.
| AbstractRowController * KDGantt::View::rowController | ( | ) |
- Returns:
- a pointer to the current rowcontroller.
- See also:
- AbstractRowController
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 260 of file kdganttview.cpp.
| QItemSelectionModel * View::selectionModel | ( | ) | const |
- Returns:
- the QItemSelectionModel used by this view
Definition at line 326 of file kdganttview.cpp.
| void View::setConstraintModel | ( | ConstraintModel * | cm | ) | [slot] |
Sets the constraintmodel displayed by this view.
- See also:
- KDGantt::ConstraintModel.
Definition at line 392 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 345 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 383 of file kdganttview.cpp.
| void View::setLeftView | ( | QAbstractItemView * | aiv | ) |
- Parameters:
-
aiv The view to be used to the left, instead of the default tree view
- See also:
- setRowController()
Definition at line 211 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 317 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 367 of file kdganttview.cpp.
| void View::setRowController | ( | AbstractRowController * | ctrl | ) |
Sets ctrl to be the rowcontroller used by this View. The default rowcontroller is owned by KDGantt::View and is suitable for the default treeview in the left part of the view. You probably only want to change this if you replace the treeview.
Definition at line 250 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 334 of file kdganttview.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference