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

Plasma

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

#include <busywidget.h>

Inheritance diagram for Plasma::BusyWidget:
Inheritance graph
[legend]

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

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

Constructs a new BusyWidget.

Parameters
parentthe 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
labelthe 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::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected

Definition at line 209 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
labela string to be shown in front of the icon.

Definition at line 105 of file busywidget.cpp.

void Plasma::BusyWidget::setRunning ( bool  running)
Parameters
runningwhether 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)
protectedslot

Definition at line 116 of file busywidget.cpp.

Property Documentation

QString Plasma::BusyWidget::label
readwrite

Definition at line 45 of file busywidget.h.

bool Plasma::BusyWidget::running
readwrite

Definition at line 44 of file busywidget.h.


The documentation for this class was generated from the following files:
  • busywidget.h
  • busywidget.cpp
This file is part of the KDE documentation.
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.

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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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