Plasma
Go to the documentation of this file.
21 #ifndef PLASMA_FLASHINGLABEL_H
22 #define PLASMA_FLASHINGLABEL_H
24 #include <QtGui/QGraphicsWidget>
25 #include <QtGui/QTextOption>
32 class FlashingLabelPrivate;
42 Q_PROPERTY(
bool autohide READ autohide WRITE setAutohide)
43 Q_PROPERTY(
QFont font READ font WRITE setFont)
44 Q_PROPERTY(
QColor color READ color WRITE setColor)
45 Q_PROPERTY(
int duration READ duration WRITE setDuration)
54 void setFont(const
QFont &);
57 void setColor(const
QColor &);
60 void setDuration(
int duration);
62 Q_INVOKABLE
void flash(const
QString &text,
int duration = 0,
64 Q_INVOKABLE
void flash(const
QPixmap &pixmap,
int duration = 0,
65 Qt::Alignment align = Qt::AlignCenter);
67 void setAutohide(
bool autohide);
68 bool autohide() const;
71 QSizeF sizeHint(Qt::SizeHint which, const
QSizeF &constraint) const;
81 Q_PRIVATE_SLOT(d,
void elementAnimationFinished())
82 Q_PRIVATE_SLOT(d,
void setPalette())
83 FlashingLabelPrivate *const d;
Provides flashing text or icons inside Plasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.