• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Plasma

  • Plasma
  • ItemBackground
Signals | Public Member Functions | Protected Member Functions | Properties

Plasma::ItemBackground Class Reference

#include <itembackground.h>

Inheritance diagram for Plasma::ItemBackground:
Inheritance graph
[legend]

List of all members.

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:
  • itembackground.h
  • itembackground.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal