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

Plasma

Plasma::BusyWidget

Plasma::BusyWidget Class Reference

A widget that provides a waiting spinner. More...

#include <busywidget.h>

Inheritance diagram for Plasma::BusyWidget:
QGraphicsWidget

List of all members.

Signals

void clicked ()

Public Member Functions

 BusyWidget (QGraphicsWidget *parent=0)
bool isRunning () const
QString label () const
void setLabel (const QString &label)
void setRunning (bool running)
 ~BusyWidget ()

Protected Slots

void timerEvent (QTimerEvent *event)

Protected Member Functions

void hideEvent (QHideEvent *event)
void mousePressEvent (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

Plasma::BusyWidget::BusyWidget ( QGraphicsWidget *  parent = 0  )  [explicit]

Constructs a new BusyWidget.

  • 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

void Plasma::BusyWidget::clicked (  )  [signal]
void Plasma::BusyWidget::hideEvent ( QHideEvent *  event  )  [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.
void Plasma::BusyWidget::mousePressEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 204 of file busywidget.cpp.

void Plasma::BusyWidget::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [protected]

Definition at line 132 of file busywidget.cpp.

void Plasma::BusyWidget::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [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.

void Plasma::BusyWidget::showEvent ( QShowEvent *  event  )  [protected]

Definition at line 180 of file busywidget.cpp.

void Plasma::BusyWidget::timerEvent ( QTimerEvent *  event  )  [protected, slot]

Definition at line 116 of file busywidget.cpp.


Property Documentation

QString Plasma::BusyWidget::label [read, write]

Definition at line 45 of file busywidget.h.

bool Plasma::BusyWidget::running [read, write]

Definition at line 44 of file busywidget.h.


The documentation for this class was generated from the following files:
  • busywidget.h
  • busywidget.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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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