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

Plasma

  • Plasma
  • ItemBackground
Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
Plasma::ItemBackground Class Reference

#include <itembackground.h>

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

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 61 of file itembackground.cpp.

ItemBackground::~ItemBackground ( )

Definition at line 96 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 203 of file itembackground.cpp.

QVariant ItemBackground::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
protected
Reimplemented from superclass. from QGraphicsWidget

Definition at line 235 of file itembackground.cpp.

void ItemBackground::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
Reimplemented from superclass. from QGraphicsWidget

Definition at line 263 of file itembackground.cpp.

void ItemBackground::resizeEvent ( QGraphicsSceneResizeEvent *  )
protected
Reimplemented from superclass. from QGraphicsItem

Definition at line 230 of file itembackground.cpp.

bool ItemBackground::sceneEventFilter ( QGraphicsItem *  watched,
QEvent *  event 
)
protected
Reimplemented from superclass. from QGraphicsItem

Definition at line 219 of file itembackground.cpp.

void ItemBackground::setTarget ( const QRectF &  newGeometry)

Sets a new target geometry we want at the end of animation.

Parameters
newGeometrythe final geometry target

Definition at line 106 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 142 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
readwrite

Definition at line 46 of file itembackground.h.

QRectF ItemBackground::target
readwrite

Definition at line 43 of file itembackground.h.

QGraphicsItem * ItemBackground::targetItem
readwrite

Definition at line 44 of file itembackground.h.


The documentation for this class was generated from the following files:
  • itembackground.h
  • itembackground.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal