List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
CalendarGraphicsItem Class Reference

#include <calendargraphicsitem.h>

Inheritance diagram for CalendarGraphicsItem:
QGraphicsRectItem GraphicsButtonReceiver

Public Member Functions

 CalendarGraphicsItem (CalendarControl *=0, QGraphicsItem *parent=0)
 
 ~CalendarGraphicsItem ()
 
CalendarControlcalendarControl () const
 
QDate selectedDay () const
 
void setCalendarControl (CalendarControl *controller)
 
void setSelectedDay (const QDate &)
 

Protected Member Functions

virtual void buttonMouseDoubleClickEvent (QGraphicsItem *, QGraphicsSceneMouseEvent *)
 
virtual void buttonMousePressEvent (QGraphicsItem *, QGraphicsSceneMouseEvent *)
 
void buttonMouseReleaseEvent (QGraphicsItem *origin, QGraphicsSceneMouseEvent *event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *)
 
void setRect (const QRectF &rectangle)
 
void setRect (qreal x, qreal y, qreal width, qreal height)
 

Protected Attributes

CalendarControl_controller
 
QMap< QString, QGraphicsItem * > _items
 
QDate _selectedDay
 

Friends

class GraphicsTextButtonItem
 

Constructor & Destructor Documentation

◆ CalendarGraphicsItem()

CalendarGraphicsItem::CalendarGraphicsItem ( CalendarControl cc = 0,
QGraphicsItem *  parent = 0 
)

◆ ~CalendarGraphicsItem()

CalendarGraphicsItem::~CalendarGraphicsItem ( )

Member Function Documentation

◆ buttonMouseDoubleClickEvent()

virtual void GraphicsButtonReceiver::buttonMouseDoubleClickEvent ( QGraphicsItem *  ,
QGraphicsSceneMouseEvent *   
)
inlinevirtualinherited

◆ buttonMousePressEvent()

virtual void GraphicsButtonReceiver::buttonMousePressEvent ( QGraphicsItem *  ,
QGraphicsSceneMouseEvent *   
)
inlinevirtualinherited

◆ buttonMouseReleaseEvent()

void CalendarGraphicsItem::buttonMouseReleaseEvent ( QGraphicsItem *  origin,
QGraphicsSceneMouseEvent *  event 
)
protectedvirtual

Reimplemented from GraphicsButtonReceiver.

◆ calendarControl()

CalendarControl * CalendarGraphicsItem::calendarControl ( ) const

◆ mousePressEvent()

void CalendarGraphicsItem::mousePressEvent ( QGraphicsSceneMouseEvent *  )
protected

◆ mouseReleaseEvent()

void CalendarGraphicsItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected

◆ selectedDay()

QDate CalendarGraphicsItem::selectedDay ( ) const
inline

◆ setCalendarControl()

void CalendarGraphicsItem::setCalendarControl ( CalendarControl controller)

◆ setRect() [1/2]

void CalendarGraphicsItem::setRect ( const QRectF &  rectangle)
protected

◆ setRect() [2/2]

void CalendarGraphicsItem::setRect ( qreal  x,
qreal  y,
qreal  width,
qreal  height 
)
protected

◆ setSelectedDay()

void CalendarGraphicsItem::setSelectedDay ( const QDate &  sDate)

Friends And Related Function Documentation

◆ GraphicsTextButtonItem

friend class GraphicsTextButtonItem
friend

Member Data Documentation

◆ _controller

CalendarControl* CalendarGraphicsItem::_controller
protected

◆ _items

QMap<QString,QGraphicsItem*> CalendarGraphicsItem::_items
protected

◆ _selectedDay

QDate CalendarGraphicsItem::_selectedDay
protected

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

Generated on Mon May 3 2021 xTuple ERP Programmer Reference, Version 4.12.0 doxygen 1.8.17