KD Chart 2  [rev.2.7]
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:
Inheritance graph
[legend]
Collaboration diagram for KDGantt::StyleOptionGanttItem:
Collaboration graph
[legend]

Public Types

enum  Position {
  Left,
  Right,
  Center,
  Hidden
}
 

Public Member Functions

StyleOptionGanttItemoperator= (const StyleOptionGanttItem &other)
 
 StyleOptionGanttItem ()
 
 StyleOptionGanttItem (const StyleOptionGanttItem &other)
 

Public Attributes

QRectF boundingRect
 
Position displayPosition
 
AbstractGridgrid
 
QRectF itemRect
 
QString text
 

Detailed Description

QStyleOption subclass for gantt items.

Definition at line 34 of file kdganttstyleoptionganttitem.h.

Member Enumeration Documentation

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 36 of file kdganttstyleoptionganttitem.h.

Constructor & Destructor Documentation

StyleOptionGanttItem::StyleOptionGanttItem ( )

Constructor. Sets grid to 0.

Definition at line 35 of file kdganttstyleoptionganttitem.cpp.

StyleOptionGanttItem::StyleOptionGanttItem ( const StyleOptionGanttItem other)

Copy constructor. Creates a copy of other

Definition at line 45 of file kdganttstyleoptionganttitem.cpp.

References operator=().

Member Function Documentation

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

Assignment operator

Definition at line 52 of file kdganttstyleoptionganttitem.cpp.

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

Referenced by StyleOptionGanttItem().

Member Data Documentation

StyleOptionGanttItem::boundingRect

Contains the bounding rectangle for the item

Definition at line 42 of file kdganttstyleoptionganttitem.h.

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

StyleOptionGanttItem::displayPosition
StyleOptionGanttItem::grid

Contains a pointer to the AbstractGrid used by the view

Definition at line 45 of file kdganttstyleoptionganttitem.h.

Referenced by operator<<(), operator=(), and KDGantt::GraphicsItem::type().

StyleOptionGanttItem::itemRect
StyleOptionGanttItem::text

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

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/