Plasma
#include <busywidget.h>
Signals | |
void | clicked () |
Public Member Functions | |
BusyWidget (QGraphicsWidget *parent=0) | |
~BusyWidget () | |
bool | isRunning () const |
QString | label () const |
void | setLabel (const QString &label) |
void | setRunning (bool running) |
Protected Slots | |
void | timerEvent (QTimerEvent *event) |
Protected Member Functions | |
void | hideEvent (QHideEvent *event) |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
void | resizeEvent (QGraphicsSceneResizeEvent *event) |
void | showEvent (QShowEvent *event) |
Properties | |
QString | label |
bool | running |
Detailed Description
A widget that provides a waiting spinner.
A simple spinner widget that can be used to represent a wait of unknown length
Definition at line 41 of file busywidget.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a new BusyWidget.
- Parameters
-
parent the parent of this widget
Definition at line 72 of file busywidget.cpp.
Plasma::BusyWidget::~BusyWidget | ( | ) |
Definition at line 84 of file busywidget.cpp.
Member Function Documentation
|
signal |
|
protected |
Definition at line 188 of file busywidget.cpp.
bool Plasma::BusyWidget::isRunning | ( | ) | const |
- Returns
- whether or not the spinner is animated.
Definition at line 100 of file busywidget.cpp.
QString Plasma::BusyWidget::label | ( | ) | const |
- Parameters
-
label the string that is shown in front of the icon.
|
protected |
Definition at line 204 of file busywidget.cpp.
|
protected |
Definition at line 209 of file busywidget.cpp.
|
protected |
Definition at line 132 of file busywidget.cpp.
|
protected |
Definition at line 198 of file busywidget.cpp.
void Plasma::BusyWidget::setLabel | ( | const QString & | label | ) |
- Parameters
-
label a string to be shown in front of the icon.
Definition at line 105 of file busywidget.cpp.
void Plasma::BusyWidget::setRunning | ( | bool | running | ) |
- Parameters
-
running whether or not the spinner has to be animated. defaults to true.
Definition at line 89 of file busywidget.cpp.
|
protected |
Definition at line 180 of file busywidget.cpp.
|
protectedslot |
Definition at line 116 of file busywidget.cpp.
Property Documentation
|
readwrite |
Definition at line 45 of file busywidget.h.
|
readwrite |
Definition at line 44 of file busywidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.