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

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

Public Types

enum  { Type = ChatScene::SearchHighlightType }

Public Member Functions

 SearchHighlightItem (QRectF wordRect, QGraphicsItem *parent=0)
virtual QRectF boundingRect () const
void updateGeometry (qreal width, qreal height)
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
virtual int type () const
void setHighlighted (bool highlighted)

Static Public Member Functions

static bool firstInLine (QGraphicsItem *item1, QGraphicsItem *item2)

Private Slots

void updateHighlight (qreal value)

Private Attributes

QRectF _boundingRect
bool _highlighted
int _alpha
QTimeLine _timeLine

Detailed Description

Definition at line 90 of file chatviewsearchcontroller.h.

Member Enumeration Documentation

anonymous enum
Enumerator:
Type 

Definition at line 104 of file chatviewsearchcontroller.h.

Constructor & Destructor Documentation

SearchHighlightItem ( QRectF  wordRect,
QGraphicsItem *  parent = 0 
)

Definition at line 397 of file chatviewsearchcontroller.cpp.

References _timeLine, updateGeometry(), and updateHighlight().

Member Function Documentation

virtual QRectF boundingRect ( ) const
inlinevirtual

Definition at line 101 of file chatviewsearchcontroller.h.

References _boundingRect.

Referenced by paint().

void updateGeometry ( qreal  width,
qreal  height 
)
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
virtual

Definition at line 434 of file chatviewsearchcontroller.cpp.

References _alpha, and boundingRect().

virtual int type ( ) const
inlinevirtual

Definition at line 105 of file chatviewsearchcontroller.h.

References Type.

void setHighlighted ( bool  highlighted)

Definition at line 411 of file chatviewsearchcontroller.cpp.

References _highlighted, and _timeLine.

bool firstInLine ( QGraphicsItem *  item1,
QGraphicsItem *  item2 
)
static
void updateHighlight ( qreal  value)
privateslot

Definition at line 427 of file chatviewsearchcontroller.cpp.

References _alpha.

Referenced by SearchHighlightItem().

Member Data Documentation

QRectF _boundingRect
private

Definition at line 115 of file chatviewsearchcontroller.h.

Referenced by boundingRect(), and updateGeometry().

bool _highlighted
private

Definition at line 116 of file chatviewsearchcontroller.h.

Referenced by setHighlighted().

int _alpha
private

Definition at line 117 of file chatviewsearchcontroller.h.

Referenced by paint(), and updateHighlight().

QTimeLine _timeLine
private

Definition at line 118 of file chatviewsearchcontroller.h.

Referenced by SearchHighlightItem(), and setHighlighted().


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