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,
63 const QTextOption &option = QTextOption(Qt::AlignCenter));
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.