KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
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 }
 This enum is used to describe where the Qt::DisplayRole (the label) should be located relative to the item itself. More...
 
- Public Types inherited from QStyleOptionViewItem
enum  Position
 
enum  StyleOptionType
 
enum  StyleOptionVersion
 
enum  ViewItemFeature
 
enum  ViewItemPosition
 
- Public Types inherited from QStyleOption
enum  OptionType
 
enum  StyleOptionType
 
enum  StyleOptionVersion
 

Public Member Functions

 StyleOptionGanttItem ()
 Constructor.
 
 StyleOptionGanttItem (const StyleOptionGanttItem &other)
 Copy constructor.
 
StyleOptionGanttItemoperator= (const StyleOptionGanttItem &other)
 Assignment operator.
 
- Public Member Functions inherited from QStyleOptionViewItem
 QStyleOptionViewItem ()
 
 QStyleOptionViewItem (const QStyleOptionViewItem &other)
 
- Public Member Functions inherited from QStyleOption
 QStyleOption (const QStyleOption &other)
 
 QStyleOption (int version, int type)
 
 ~QStyleOption ()
 
void init (const QWidget *widget)
 
void initFrom (const QWidget *widget)
 
QStyleOptionoperator= (const QStyleOption &other)
 
qstyleoption_cast (const QStyleOption *option)
 
qstyleoption_cast (QStyleOption *option)
 

Public Attributes

QRectF boundingRect
 Contains the bounding rectangle for the item.
 
Position displayPosition = Left
 
AbstractGridgrid = nullptr
 Contains a pointer to the AbstractGrid used by the view.
 
QRectF itemRect
 Contains the "active" item rectangle that corresponds to the values from the model.
 
QString text
 Contains a string printed to the item.
 
- Public Attributes inherited from QStyleOptionViewItem
 Alternate
 
 Beginning
 
 Bottom
 
 End
 
 HasCheckIndicator
 
 HasDecoration
 
 HasDisplay
 
 Invalid
 
 Left
 
 Middle
 
 None
 
 OnlyOne
 
typedef QStyleOptionViewItemV2
 
typedef QStyleOptionViewItemV3
 
typedef QStyleOptionViewItemV4
 
 Right
 
 Top
 
 Type
 
 Version
 
typedef ViewItemFeatures
 
 WrapText
 
- Public Attributes inherited from QStyleOption
 SO_Button
 
 SO_ComboBox
 
 SO_Complex
 
 SO_ComplexCustomBase
 
 SO_CustomBase
 
 SO_Default
 
 SO_DockWidget
 
 SO_FocusRect
 
 SO_Frame
 
 SO_GraphicsItem
 
 SO_GroupBox
 
 SO_Header
 
 SO_MenuItem
 
 SO_ProgressBar
 
 SO_RubberBand
 
 SO_SizeGrip
 
 SO_Slider
 
 SO_SpinBox
 
 SO_Tab
 
 SO_TabBarBase
 
 SO_TabWidgetFrame
 
 SO_TitleBar
 
 SO_ToolBar
 
 SO_ToolBox
 
 SO_ToolButton
 
 SO_ViewItem
 
 Type
 
 Version
 

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.

References QStyleOption::SO_CustomBase.

◆ 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 operator<<(), and operator=().

◆ 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 operator<<(), and operator=().

◆ text

StyleOptionGanttItem::text

Contains a string printed to the item.

Definition at line 41 of file kdganttstyleoptionganttitem.h.

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


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 on Fri Apr 26 2024 00:04:58 for KD Chart API Documentation by doxygen 1.9.8