Plasma
Plasma::ItemBackground Class Reference
#include <itembackground.h>

Signals | |
| void | animationStep (qreal progress) |
| void | appearanceChanged () |
| void | targetItemReached (QGraphicsItem *) |
| void | targetReached (QRectF) |
Public Member Functions | |
| ItemBackground (QGraphicsWidget *parent=0) | |
| ~ItemBackground () | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| void | setTarget (const QRectF &newGeometry) |
| void | setTargetItem (QGraphicsItem *target) |
| QRectF | target () const |
| QGraphicsItem * | targetItem () const |
Protected Member Functions | |
| bool | eventFilter (QObject *watched, QEvent *event) |
| QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
| void | resizeEvent (QGraphicsSceneResizeEvent *) |
| bool | sceneEventFilter (QGraphicsItem *watched, QEvent *event) |
Properties | |
| qreal | animationUpdate |
| QRectF | target |
| QGraphicsItem | targetItem |
Detailed Description
Definition at line 40 of file itembackground.h.
Constructor & Destructor Documentation
| ItemBackground::ItemBackground | ( | QGraphicsWidget * | parent = 0 | ) |
Definition at line 62 of file itembackground.cpp.
| ItemBackground::~ItemBackground | ( | ) |
Definition at line 97 of file itembackground.cpp.
Member Function Documentation
| void Plasma::ItemBackground::animationStep | ( | qreal | progress | ) | [signal] |
Emitted at each animation frame.
Useful for synchronizing item animations
| void Plasma::ItemBackground::appearanceChanged | ( | ) | [signal] |
Emitted when the visual layout and appearance changes.
Useful for synchronizing content margins.
| bool ItemBackground::eventFilter | ( | QObject * | watched, |
| QEvent * | event | ||
| ) | [protected] |
- Reimplemented from superclass. from QObject
Definition at line 204 of file itembackground.cpp.
| QVariant ItemBackground::itemChange | ( | GraphicsItemChange | change, |
| const QVariant & | value | ||
| ) | [protected] |
- Reimplemented from superclass. from QGraphicsWidget
Definition at line 236 of file itembackground.cpp.
| void ItemBackground::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget | ||
| ) |
- Reimplemented from superclass. from QGraphicsWidget
Definition at line 264 of file itembackground.cpp.
| void ItemBackground::resizeEvent | ( | QGraphicsSceneResizeEvent * | ) | [protected] |
- Reimplemented from superclass. from QGraphicsItem
Definition at line 231 of file itembackground.cpp.
| bool ItemBackground::sceneEventFilter | ( | QGraphicsItem * | watched, |
| QEvent * | event | ||
| ) | [protected] |
- Reimplemented from superclass. from QGraphicsItem
Definition at line 220 of file itembackground.cpp.
| void ItemBackground::setTarget | ( | const QRectF & | newGeometry | ) |
Sets a new target geometry we want at the end of animation.
- newGeometry the final geometry target
Definition at line 107 of file itembackground.cpp.
| void ItemBackground::setTargetItem | ( | QGraphicsItem * | target | ) |
set the ItemBackground geometry to be the target geometry, plus the ItemBackground margins
Definition at line 143 of file itembackground.cpp.
| QRectF Plasma::ItemBackground::target | ( | ) | const |
- Returns:
- the current target rect; may be empty if there is no target currently set
| QGraphicsItem* Plasma::ItemBackground::targetItem | ( | ) | const |
- Returns:
- the target item, if any
| void Plasma::ItemBackground::targetItemReached | ( | QGraphicsItem * | ) | [signal] |
Emitted when the target has been reached.
Useful to consider this instead of the corresponding hoverEnterEvent;
| void Plasma::ItemBackground::targetReached | ( | QRectF | ) | [signal] |
Emitted when the target has been reached.
Useful to consider this instead of the corresponding hoverEnterEvent;
Property Documentation
qreal ItemBackground::animationUpdate [read, write] |
Definition at line 46 of file itembackground.h.
QRectF ItemBackground::target [read, write] |
Definition at line 43 of file itembackground.h.
QGraphicsItem * ItemBackground::targetItem [read, write] |
Definition at line 44 of file itembackground.h.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference