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

Plasma

Plasma::FlashingLabel

Plasma::FlashingLabel Class Reference

Provides flashing text or icons inside Plasma. More...

#include <Plasma/Widgets/FlashingLabel>

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

List of all members.

Public Slots

void kill ()

Public Member Functions

 FlashingLabel (QGraphicsItem *parent=0)
virtual ~FlashingLabel ()
bool autohide () const
QColor color () const
int duration () const
Q_INVOKABLE void flash (const QPixmap &pixmap, int duration=0, Qt::Alignment align=Qt::AlignCenter)
Q_INVOKABLE void flash (const QString &text, int duration=0, const QTextOption &option=QTextOption(Qt::AlignCenter))
QFont font () const
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
void setAutohide (bool autohide)
void setColor (const QColor &)
void setDuration (int duration)
void setFont (const QFont &)

Protected Slots

void fadeIn ()
void fadeOut ()

Protected Member Functions

QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint) const

Properties

bool autohide
QColor color
int duration
QFont font

Detailed Description

Provides flashing text or icons inside Plasma.

Definition at line 39 of file flashinglabel.h.


Constructor & Destructor Documentation

FlashingLabel::FlashingLabel ( QGraphicsItem *  parent = 0  )  [explicit]

Definition at line 90 of file flashinglabel.cpp.

FlashingLabel::~FlashingLabel (  )  [virtual]

Definition at line 100 of file flashinglabel.cpp.


Member Function Documentation

bool Plasma::FlashingLabel::autohide (  )  const
QColor Plasma::FlashingLabel::color (  )  const
int Plasma::FlashingLabel::duration (  )  const
void FlashingLabel::fadeIn (  )  [protected, slot]

Definition at line 190 of file flashinglabel.cpp.

void FlashingLabel::fadeOut (  )  [protected, slot]

Definition at line 202 of file flashinglabel.cpp.

void FlashingLabel::flash ( const QPixmap &  pixmap,
int  duration = 0,
Qt::Alignment  align = Qt::AlignCenter 
)

Definition at line 152 of file flashinglabel.cpp.

void FlashingLabel::flash ( const QString &  text,
int  duration = 0,
const QTextOption &  option = QTextOption(Qt::AlignCenter) 
)

Definition at line 139 of file flashinglabel.cpp.

QFont Plasma::FlashingLabel::font (  )  const
void FlashingLabel::kill (  )  [slot]

Definition at line 182 of file flashinglabel.cpp.

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

Definition at line 214 of file flashinglabel.cpp.

void FlashingLabel::setAutohide ( bool  autohide  ) 

Definition at line 164 of file flashinglabel.cpp.

void FlashingLabel::setColor ( const QColor &  color  ) 

Definition at line 124 of file flashinglabel.cpp.

void FlashingLabel::setDuration ( int  duration  ) 

Definition at line 110 of file flashinglabel.cpp.

void FlashingLabel::setFont ( const QFont &  font  ) 

Definition at line 134 of file flashinglabel.cpp.

QSizeF FlashingLabel::sizeHint ( Qt::SizeHint  which,
const QSizeF &  constraint 
) const [protected]

Definition at line 230 of file flashinglabel.cpp.


Property Documentation

bool FlashingLabel::autohide [read, write]

Definition at line 42 of file flashinglabel.h.

QColor FlashingLabel::color [read, write]

Definition at line 44 of file flashinglabel.h.

int FlashingLabel::duration [read, write]

Definition at line 45 of file flashinglabel.h.

QFont FlashingLabel::font [read, write]

Definition at line 43 of file flashinglabel.h.


The documentation for this class was generated from the following files:
  • flashinglabel.h
  • flashinglabel.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
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9-20090814
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