Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
MarkerLineItem Class Reference

#include </tmp/quassel/src/qtui/markerlineitem.h>

Collaboration diagram for MarkerLineItem:

Public Slots

void setChatLine (ChatLine *line)
 Set the ChatLine this MarkerLineItem is associated to.
void sceneRectChanged (const QRectF &)

Public Member Functions

 MarkerLineItem (qreal sceneWidth, QGraphicsItem *parent=0)
virtual int type () const
QRectF boundingRect () const
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
ChatLinechatLine () const

Private Slots

void styleChanged ()

Private Attributes

QRectF _boundingRect
QBrush _brush
ChatLine_chatLine

Detailed Description

Definition at line 30 of file markerlineitem.h.

Constructor & Destructor Documentation

MarkerLineItem ( qreal  sceneWidth,
QGraphicsItem *  parent = 0 
)

Definition at line 26 of file markerlineitem.cpp.

References QtUi::style(), and styleChanged().

Member Function Documentation

virtual int type ( ) const
inlinevirtual

Definition at line 36 of file markerlineitem.h.

References ChatScene::MarkerLineType.

QRectF boundingRect ( ) const
inline

Definition at line 38 of file markerlineitem.h.

References _boundingRect.

Referenced by paint().

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)

Definition at line 68 of file markerlineitem.cpp.

References _brush, and boundingRect().

ChatLine* chatLine ( ) const
inline

Definition at line 41 of file markerlineitem.h.

References _chatLine.

Referenced by ChatScene::rowsAboutToBeRemoved(), and ChatScene::rowsInserted().

void setChatLine ( ChatLine line)
slot

Set the ChatLine this MarkerLineItem is associated to.

Definition at line 38 of file markerlineitem.cpp.

References _chatLine.

Referenced by ChatScene::rowsAboutToBeRemoved(), and ChatScene::setMarkerLine().

void sceneRectChanged ( const QRectF &  rect)
slot

Definition at line 61 of file markerlineitem.cpp.

References _boundingRect.

void styleChanged ( )
privateslot

Member Data Documentation

QRectF _boundingRect
private

Definition at line 52 of file markerlineitem.h.

Referenced by boundingRect(), sceneRectChanged(), and styleChanged().

QBrush _brush
private

Definition at line 53 of file markerlineitem.h.

Referenced by paint(), and styleChanged().

ChatLine* _chatLine
private

Definition at line 54 of file markerlineitem.h.

Referenced by chatLine(), and setChatLine().


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