• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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:
QGraphicsWidget

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::ItemBackground ( QGraphicsWidget *  parent = 0)

Definition at line 61 of file itembackground.cpp.

◆ ~ItemBackground()

ItemBackground::~ItemBackground ( )

Definition at line 96 of file itembackground.cpp.

Member Function Documentation

◆ animationStep

void Plasma::ItemBackground::animationStep ( qreal  progress)
signal

Emitted at each animation frame.

Useful for synchronizing item animations

◆ appearanceChanged

void Plasma::ItemBackground::appearanceChanged ( )
signal

Emitted when the visual layout and appearance changes.

Useful for synchronizing content margins.

◆ eventFilter()

bool ItemBackground::eventFilter ( QObject *  watched,
QEvent *  event 
)
protected
Reimplemented from superclass. from QObject

Definition at line 203 of file itembackground.cpp.

◆ itemChange()

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

Definition at line 235 of file itembackground.cpp.

◆ paint()

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

Definition at line 263 of file itembackground.cpp.

◆ resizeEvent()

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

Definition at line 230 of file itembackground.cpp.

◆ sceneEventFilter()

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

Definition at line 219 of file itembackground.cpp.

◆ setTarget()

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.

◆ setTargetItem()

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.

◆ target()

QRectF ItemBackground::target ( ) const
Returns
the current target rect; may be empty if there is no target currently set

Definition at line 101 of file itembackground.cpp.

◆ targetItem()

QGraphicsItem * ItemBackground::targetItem ( ) const
Returns
the target item, if any

Definition at line 198 of file itembackground.cpp.

◆ targetItemReached

void Plasma::ItemBackground::targetItemReached ( QGraphicsItem *  )
signal

Emitted when the target has been reached.

Useful to consider this instead of the corresponding hoverEnterEvent;

◆ targetReached

void Plasma::ItemBackground::targetReached ( QRectF  )
signal

Emitted when the target has been reached.

Useful to consider this instead of the corresponding hoverEnterEvent;

Property Documentation

◆ animationUpdate

qreal Plasma::ItemBackground::animationUpdate
readwrite

Definition at line 1 of file itembackground.h.

◆ target

QRectF Plasma::ItemBackground::target
readwrite

Definition at line 1 of file itembackground.h.

◆ targetItem

QGraphicsItem* Plasma::ItemBackground::targetItem
readwrite

Definition at line 1 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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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