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

Plasma

  • Plasma
  • FlashingLabel
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Properties | List of all members
Plasma::FlashingLabel Class Reference

#include <Plasma/Widgets/FlashingLabel>

Inheritance diagram for Plasma::FlashingLabel:
QGraphicsWidget

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::FlashingLabel ( QGraphicsItem *  parent = 0)
explicit

Definition at line 94 of file flashinglabel.cpp.

◆ ~FlashingLabel()

FlashingLabel::~FlashingLabel ( )
virtual

Definition at line 104 of file flashinglabel.cpp.

Member Function Documentation

◆ autohide()

bool FlashingLabel::autohide ( ) const

Definition at line 181 of file flashinglabel.cpp.

◆ color()

QColor FlashingLabel::color ( ) const

Definition at line 123 of file flashinglabel.cpp.

◆ duration()

int FlashingLabel::duration ( ) const

Definition at line 109 of file flashinglabel.cpp.

◆ fadeIn

void FlashingLabel::fadeIn ( )
protectedslot

Definition at line 194 of file flashinglabel.cpp.

◆ fadeOut

void FlashingLabel::fadeOut ( )
protectedslot

Definition at line 217 of file flashinglabel.cpp.

◆ flash() [1/2]

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

Definition at line 156 of file flashinglabel.cpp.

◆ flash() [2/2]

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

Definition at line 143 of file flashinglabel.cpp.

◆ font()

QFont FlashingLabel::font ( ) const

Definition at line 133 of file flashinglabel.cpp.

◆ kill

void FlashingLabel::kill ( )
slot

Definition at line 186 of file flashinglabel.cpp.

◆ paint()

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

Definition at line 238 of file flashinglabel.cpp.

◆ setAutohide()

void FlashingLabel::setAutohide ( bool  autohide)

Definition at line 168 of file flashinglabel.cpp.

◆ setColor()

void FlashingLabel::setColor ( const QColor &  color)

Definition at line 128 of file flashinglabel.cpp.

◆ setDuration()

void FlashingLabel::setDuration ( int  duration)

Definition at line 114 of file flashinglabel.cpp.

◆ setFont()

void FlashingLabel::setFont ( const QFont &  font)

Definition at line 138 of file flashinglabel.cpp.

◆ sizeHint()

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

Definition at line 251 of file flashinglabel.cpp.

Property Documentation

◆ autohide

bool Plasma::FlashingLabel::autohide
readwrite

Definition at line 1 of file flashinglabel.h.

◆ color

QColor Plasma::FlashingLabel::color
readwrite

Definition at line 1 of file flashinglabel.h.

◆ duration

int Plasma::FlashingLabel::duration
readwrite

Definition at line 1 of file flashinglabel.h.

◆ font

QFont Plasma::FlashingLabel::font
readwrite

Definition at line 1 of file flashinglabel.h.


The documentation for this class was generated from the following files:
  • flashinglabel.h
  • flashinglabel.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