KGantt::AbstractRowController
#include <KGanttAbstractRowController>
Public Member Functions | |
AbstractRowController () | |
virtual | ~AbstractRowController () |
virtual int | headerHeight () const =0 |
virtual QModelIndex | indexAbove (const QModelIndex &idx) const =0 |
virtual QModelIndex | indexAt (int height) const =0 |
virtual QModelIndex | indexBelow (const QModelIndex &idx) const =0 |
virtual bool | isRowExpanded (const QModelIndex &idx) const =0 |
virtual bool | isRowVisible (const QModelIndex &idx) const =0 |
virtual int | maximumItemHeight () const =0 |
virtual Span | rowGeometry (const QModelIndex &idx) const =0 |
virtual int | totalHeight () const =0 |
Detailed Description
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the model and to determine the row geometries.
Constructor & Destructor Documentation
◆ AbstractRowController()
AbstractRowController::AbstractRowController | ( | ) |
Constructor. Does nothing
Definition at line 14 of file kganttabstractrowcontroller.cpp.
◆ ~AbstractRowController()
|
virtual |
Destructor. Does nothing
Definition at line 19 of file kganttabstractrowcontroller.cpp.
Member Function Documentation
◆ headerHeight()
|
pure virtual |
- Returns
- The height of the header part of the view.
Implement this to control how much space is reserved at the top of the view for a header
Implemented in KGantt::ListViewRowController, and KGantt::TreeViewRowController.
◆ indexAbove()
|
pure virtual |
- Returns
- The modelindex for the previous row before idx.
- See also
- QTreeView::indexAbove
Implemented in KGantt::ListViewRowController, and KGantt::TreeViewRowController.
◆ indexBelow()
|
pure virtual |
- Returns
- The modelindex for the next row after idx.
- See also
- QTreeView::indexBelow
Implemented in KGantt::ListViewRowController, and KGantt::TreeViewRowController.
◆ isRowVisible()
|
pure virtual |
- Returns
- true if the row containing index idx is visible in the view.
Implement this to allow KGantt to optimize how items on screen are created. It is not harmful to always return true here, but the View will not perform optimally.
Implemented in KGantt::ListViewRowController, and KGantt::TreeViewRowController.
◆ rowGeometry()
|
pure virtual |
- Returns
- A Span consisting of the row offset and height for the row containing idx. A simple implementation might look like
Implemented in KGantt::ListViewRowController, and KGantt::TreeViewRowController.
◆ totalHeight()
|
pure virtual |
- Returns
- the total height of the rows. For uniformly sized rows that would be number_of_rows*row_height.
Implemented in KGantt::ListViewRowController, and KGantt::TreeViewRowController.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.