KDGantt::StyleOptionGanttItem Class Reference

#include <KDGanttStyleOptionGanttItem>

Inheritance diagram for KDGantt::StyleOptionGanttItem:

Inheritance graph
[legend]
Collaboration diagram for KDGantt::StyleOptionGanttItem:

Collaboration graph
[legend]

List of all members.


Detailed Description

QStyleOption subclass for gantt items.

Definition at line 36 of file kdganttstyleoptionganttitem.h.


Public Types

enum  Position {
  Left,
  Right,
  Center
}

Public Member Functions

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

Public Attributes

QRectF boundingRect
Position displayPosition
AbstractGridgrid
QRectF itemRect
QString text

Member Enumeration Documentation

enum KDGantt::StyleOptionGanttItem::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 

Definition at line 38 of file kdganttstyleoptionganttitem.h.

00038 { Left, Right, Center };


Constructor & Destructor Documentation

StyleOptionGanttItem::StyleOptionGanttItem (  ) 

Constructor. Sets grid to 0.

Definition at line 37 of file kdganttstyleoptionganttitem.cpp.

References StockDiagram::type().

00038     : BASE(),
00039       grid( 0 )
00040 {
00041     type = QStyleOption::SO_CustomBase+89;
00042     version = 1;
00043 }

StyleOptionGanttItem::StyleOptionGanttItem ( const StyleOptionGanttItem other  ) 

Copy constructor. Creates a copy of other

Definition at line 46 of file kdganttstyleoptionganttitem.cpp.

References operator=().

00047     : BASE(other)
00048 {
00049     operator=( other );
00050 }


Member Function Documentation

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

Assignment operator

Definition at line 53 of file kdganttstyleoptionganttitem.cpp.

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

Referenced by StyleOptionGanttItem().

00054 {
00055     BASE::operator=( other );
00056     boundingRect = other.boundingRect;
00057     itemRect = other.itemRect;
00058     displayPosition = other.displayPosition;
00059     grid = other.grid;
00060     text = other.text;
00061     return *this;
00062 }


Member Data Documentation

StyleOptionGanttItem::boundingRect

Contains the bounding rectangle for the item

Definition at line 44 of file kdganttstyleoptionganttitem.h.

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

StyleOptionGanttItem::displayPosition

See also:
StyleOptionGanttItem::Position.

Definition at line 46 of file kdganttstyleoptionganttitem.h.

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

StyleOptionGanttItem::grid

Contains a pointer to the AbstractGrid used by the view

Definition at line 47 of file kdganttstyleoptionganttitem.h.

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

StyleOptionGanttItem::itemRect

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

Definition at line 45 of file kdganttstyleoptionganttitem.h.

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

StyleOptionGanttItem::text

Contains a string printed to the item

Definition at line 48 of file kdganttstyleoptionganttitem.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Mar 4 23:27:19 2010 for KD Chart 2 by  doxygen 1.5.4