KD Chart API Documentation  3.1
Public Types | Public Member Functions | Public Attributes | List of all members
KDGantt::StyleOptionGanttItem Class Reference

QStyleOption subclass for gantt items. More...

#include <KDGanttStyleOptionGanttItem>

Inheritance diagram for KDGantt::StyleOptionGanttItem:

Public Types

enum  Position { Left , Right , Center , Hidden }
 This enum is used to describe where the Qt::DisplayRole (the label) should be located relative to the item itself. More...
 

Public Member Functions

 StyleOptionGanttItem ()
 Constructor. More...
 
 StyleOptionGanttItem (const StyleOptionGanttItem &other)
 Copy constructor. More...
 
StyleOptionGanttItemoperator= (const StyleOptionGanttItem &other)
 Assignment operator. More...
 

Public Attributes

QRectF boundingRect
 Contains the bounding rectangle for the item. More...
 
Position displayPosition = Left
 
AbstractGridgrid = nullptr
 Contains a pointer to the AbstractGrid used by the view. More...
 
QRectF itemRect
 Contains the "active" item rectangle that corresponds to the values from the model. More...
 
QString text
 Contains a string printed to the item. More...
 

Detailed Description

QStyleOption subclass for gantt items.

Definition at line 22 of file kdganttstyleoptionganttitem.h.

Member Enumeration Documentation

◆ Position

This enum is used to describe where the Qt::DisplayRole (the label) should be located relative to the item itself.

Enumerator
Left 
Right 
Center 
Hidden 

Definition at line 25 of file kdganttstyleoptionganttitem.h.

Constructor & Destructor Documentation

◆ StyleOptionGanttItem() [1/2]

StyleOptionGanttItem::StyleOptionGanttItem ( )

Constructor.

Sets grid to 0.

Definition at line 23 of file kdganttstyleoptionganttitem.cpp.

◆ StyleOptionGanttItem() [2/2]

StyleOptionGanttItem::StyleOptionGanttItem ( const StyleOptionGanttItem other)

Copy constructor.

Creates a copy of other

Definition at line 31 of file kdganttstyleoptionganttitem.cpp.

References operator=().

Member Function Documentation

◆ operator=()

StyleOptionGanttItem & StyleOptionGanttItem::operator= ( const StyleOptionGanttItem other)

Assignment operator.

Definition at line 38 of file kdganttstyleoptionganttitem.cpp.

References boundingRect, displayPosition, grid, itemRect, and text.

Referenced by StyleOptionGanttItem().

Member Data Documentation

◆ boundingRect

StyleOptionGanttItem::boundingRect

Contains the bounding rectangle for the item.

Definition at line 37 of file kdganttstyleoptionganttitem.h.

Referenced by KDGantt::Legend::drawItem(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().

◆ displayPosition

StyleOptionGanttItem::displayPosition = Left

◆ grid

StyleOptionGanttItem::grid = nullptr

Contains a pointer to the AbstractGrid used by the view.

Definition at line 40 of file kdganttstyleoptionganttitem.h.

Referenced by operator<<(), and operator=().

◆ itemRect

StyleOptionGanttItem::itemRect

Contains the "active" item rectangle that corresponds to the values from the model.

Definition at line 38 of file kdganttstyleoptionganttitem.h.

Referenced by KDGantt::Legend::drawItem(), KDGantt::ItemDelegate::interactionStateFor(), KDGantt::ItemDelegate::itemBoundingSpan(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().

◆ text

StyleOptionGanttItem::text

The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1