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

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

Public Slots

void sceneRectChanged (const QRectF &)
void setOpacity (qreal opacity)

Signals

void positionChanged (qreal x)

Public Member Functions

 ColumnHandleItem (qreal width, QGraphicsItem *parent=0)
virtual int type () const
qreal width () const
QRectF boundingRect () const
qreal sceneLeft () const
qreal sceneRight () const
qreal opacity () const
void setXPos (qreal xpos)
void setXLimits (qreal min, qreal max)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)

Protected Member Functions

void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
void mousePressEvent (QGraphicsSceneMouseEvent *event)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)

Properties

qreal opacity

Private Attributes

qreal _width
qreal _sceneLeft
qreal _sceneRight
QRectF _boundingRect
bool _moving
qreal _offset
qreal _minXPos
qreal _maxXPos
qreal _opacity
QPropertyAnimation * _animation

Detailed Description

Definition at line 30 of file columnhandleitem.h.

Constructor & Destructor Documentation

ColumnHandleItem ( qreal  width,
QGraphicsItem *  parent = 0 
)

Definition at line 30 of file columnhandleitem.cpp.

References _animation.

Member Function Documentation

virtual int type ( ) const
inlinevirtual

Definition at line 37 of file columnhandleitem.h.

References ChatScene::ColumnHandleType.

qreal width ( ) const
inline

Definition at line 39 of file columnhandleitem.h.

References _width.

Referenced by mouseMoveEvent().

QRectF boundingRect ( ) const
inline

Definition at line 40 of file columnhandleitem.h.

References _boundingRect.

Referenced by paint().

qreal opacity ( ) const
inline

Definition at line 44 of file columnhandleitem.h.

References _opacity.

Referenced by setOpacity().

void setXPos ( qreal  xpos)
void setXLimits ( qreal  min,
qreal  max 
)

Definition at line 65 of file columnhandleitem.cpp.

References _maxXPos, and _minXPos.

Referenced by ChatScene::setHandleXLimits().

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

Definition at line 154 of file columnhandleitem.cpp.

References _opacity, and boundingRect().

void sceneRectChanged ( const QRectF &  rect)
slot

Definition at line 74 of file columnhandleitem.cpp.

References _boundingRect, and _width.

void setOpacity ( qreal  opacity)
slot

Definition at line 81 of file columnhandleitem.cpp.

References _opacity, and opacity().

void hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 136 of file columnhandleitem.cpp.

References _animation.

void hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 145 of file columnhandleitem.cpp.

References _animation.

void mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protected

Definition at line 88 of file columnhandleitem.cpp.

References _maxXPos, _minXPos, _moving, _offset, and width().

void mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected

Definition at line 105 of file columnhandleitem.cpp.

References _moving, and _offset.

void mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected

Definition at line 119 of file columnhandleitem.cpp.

References _boundingRect, _moving, _sceneLeft, _sceneRight, and positionChanged().

void positionChanged ( qreal  x)
signal

Referenced by mouseReleaseEvent(), and setXPos().

Member Data Documentation

qreal _width
private

Definition at line 66 of file columnhandleitem.h.

Referenced by sceneRectChanged(), and width().

qreal _sceneLeft
private

Definition at line 67 of file columnhandleitem.h.

Referenced by mouseReleaseEvent(), sceneLeft(), and setXPos().

qreal _sceneRight
private

Definition at line 67 of file columnhandleitem.h.

Referenced by mouseReleaseEvent(), sceneRight(), and setXPos().

QRectF _boundingRect
private

Definition at line 68 of file columnhandleitem.h.

Referenced by boundingRect(), mouseReleaseEvent(), sceneRectChanged(), and setXPos().

bool _moving
private

Definition at line 69 of file columnhandleitem.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

qreal _offset
private

Definition at line 70 of file columnhandleitem.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

qreal _minXPos
private

Definition at line 71 of file columnhandleitem.h.

Referenced by mouseMoveEvent(), and setXLimits().

qreal _maxXPos
private

Definition at line 71 of file columnhandleitem.h.

Referenced by mouseMoveEvent(), and setXLimits().

qreal _opacity
private

Definition at line 72 of file columnhandleitem.h.

Referenced by opacity(), paint(), and setOpacity().

QPropertyAnimation* _animation
private

Definition at line 73 of file columnhandleitem.h.

Referenced by ColumnHandleItem(), hoverEnterEvent(), and hoverLeaveEvent().

Property Documentation

qreal opacity
readwrite

Definition at line 33 of file columnhandleitem.h.


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