KGantt::ItemDelegate
#include <KGanttItemDelegate>
Public Types | |
enum | InteractionState { State_None = 0 , State_Move , State_ExtendLeft , State_ExtendRight , State_DragConstraint } |
Public Types inherited from QAbstractItemDelegate | |
enum | EndEditHint |
Detailed Description
Class used to render gantt items in a KGantt::GraphicsView.
Definition at line 28 of file kganttitemdelegate.h.
Member Enumeration Documentation
◆ InteractionState
enum KGantt::ItemDelegate::InteractionState |
Definition at line 38 of file kganttitemdelegate.h.
Constructor & Destructor Documentation
◆ ItemDelegate()
Constructor. Creates an ItemDelegate with parent parent
Definition at line 95 of file kganttitemdelegate.cpp.
◆ ~ItemDelegate()
|
override |
Destructor
Definition at line 101 of file kganttitemdelegate.cpp.
Member Function Documentation
◆ constraintBoundingRect()
|
virtual |
- Returns
- The bounding rectangle for the graphics used to represent a constraint between points start and end (typically an arrow)
Definition at line 342 of file kganttitemdelegate.cpp.
◆ defaultBrush()
QBrush ItemDelegate::defaultBrush | ( | ItemType | type | ) | const |
- Returns
- The default brush for item type type
- Todo
- Move this to GraphicsView to make delegate stateless.
Definition at line 115 of file kganttitemdelegate.cpp.
◆ defaultPen()
QPen ItemDelegate::defaultPen | ( | ItemType | type | ) | const |
- Returns
- The default pen for item type type
- Todo
- Move this to GraphicsView to make delegate stateless.
Definition at line 127 of file kganttitemdelegate.cpp.
◆ finishFinishArrow()
|
protected |
Definition at line 465 of file kganttitemdelegate.cpp.
◆ finishFinishLine()
|
protected |
Definition at line 443 of file kganttitemdelegate.cpp.
◆ finishStartArrow()
|
protected |
Definition at line 419 of file kganttitemdelegate.cpp.
◆ finishStartLine()
|
protected |
Definition at line 397 of file kganttitemdelegate.cpp.
◆ interactionStateFor()
|
virtual |
- Returns
- The interaction state for position pos on item idx when rendered with options opt. This is used to tell the view about how the item should react to mouse click/drag.
Override to implement new items or interactions.
Definition at line 181 of file kganttitemdelegate.cpp.
◆ itemBoundingSpan()
|
virtual |
- Returns
- The bounding Span for the item identified by idx when rendered with options opt. This is often the same as the span given by the AbstractGrid for idx, but it might be larger in case there are additional texts or decorations on the item.
Override this to implement new itemtypes or to change the look of the existing ones.
Definition at line 148 of file kganttitemdelegate.cpp.
◆ paintConstraintItem()
|
virtual |
Paints the constraint between points start and end using painter and opt.
- Todo
- Review opt's type
Definition at line 364 of file kganttitemdelegate.cpp.
◆ paintFinishFinishConstraint()
|
protected |
Definition at line 430 of file kganttitemdelegate.cpp.
◆ paintFinishStartConstraint()
|
protected |
Definition at line 384 of file kganttitemdelegate.cpp.
◆ paintGanttItem()
|
virtual |
Paints the gantt item idx using painter and opt
Definition at line 215 of file kganttitemdelegate.cpp.
◆ paintStartFinishConstraint()
|
protected |
Definition at line 522 of file kganttitemdelegate.cpp.
◆ paintStartStartConstraint()
|
protected |
Definition at line 476 of file kganttitemdelegate.cpp.
◆ setDefaultBrush()
Sets the default brush used for items of type type to brush. The default brush is used in the case when the model does not provide an explicit brush.
- Todo
- Move this to GraphicsView to make delegate stateless.
Definition at line 109 of file kganttitemdelegate.cpp.
◆ setDefaultPen()
Sets the default pen used for items of type type to pen. The default pen is used in the case when the model does not provide an explicit pen.
- Todo
- Move this to GraphicsView to make delegate stateless.
Definition at line 121 of file kganttitemdelegate.cpp.
◆ startFinishArrow()
|
protected |
Definition at line 559 of file kganttitemdelegate.cpp.
◆ startFinishLine()
|
protected |
Definition at line 535 of file kganttitemdelegate.cpp.
◆ startStartArrow()
|
protected |
Definition at line 511 of file kganttitemdelegate.cpp.
◆ startStartLine()
|
protected |
Definition at line 490 of file kganttitemdelegate.cpp.
◆ toolTip()
|
virtual |
- Returns
- The tooltip for index idx
Definition at line 133 of file kganttitemdelegate.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:21 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.