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

Plasma

Plasma::RadioButton

Plasma::RadioButton Class Reference

Provides a plasma-themed QRadioButton. More...

#include <Plasma/Widgets/RadioButton>

Inheritance diagram for Plasma::RadioButton:

Inheritance graph
[legend]

List of all members.


Signals

void toggled (bool)

Public Member Functions

QString image () const
bool isChecked () const
QRadioButton * nativeWidget () const
 RadioButton (QGraphicsWidget *parent=0)
void setChecked (bool checked)
void setImage (const QString &path)
void setStyleSheet (const QString &stylesheet)
void setText (const QString &text)
QString styleSheet ()
QString text () const
 ~RadioButton ()

Protected Member Functions

void resizeEvent (QGraphicsSceneResizeEvent *event)

Properties

QString image
bool isChecked
QRadioButton nativeWidget
QGraphicsWidget parentWidget
QString styleSheet
QString text

Detailed Description

Provides a plasma-themed QRadioButton.

Definition at line 39 of file radiobutton.h.


Constructor & Destructor Documentation

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

Definition at line 72 of file radiobutton.cpp.

Plasma::RadioButton::~RadioButton (  ) 

Definition at line 82 of file radiobutton.cpp.


Member Function Documentation

QString Plasma::RadioButton::image (  )  const

Returns:
the image path being displayed currently, or an empty string if none.

bool Plasma::RadioButton::isChecked (  )  const

Returns:
the checked state

QRadioButton* Plasma::RadioButton::nativeWidget (  )  const

Returns:
the native widget wrapped by this RadioButton

void Plasma::RadioButton::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [protected]

Definition at line 145 of file radiobutton.cpp.

void Plasma::RadioButton::setChecked ( bool  checked  ) 

Sets the checked state.

  • checked true if checked, false if not

Definition at line 151 of file radiobutton.cpp.

void Plasma::RadioButton::setImage ( const QString &  path  ) 

Sets the path to an image to display.

  • path the path to the image; if a relative path, then a themed image will be loaded.

Definition at line 97 of file radiobutton.cpp.

void Plasma::RadioButton::setStyleSheet ( const QString &  stylesheet  ) 

Sets the stylesheet used to control the visual display of this RadioButton.

  • stylesheet a CSS string

Definition at line 130 of file radiobutton.cpp.

void Plasma::RadioButton::setText ( const QString &  text  ) 

Sets the display text for this RadioButton.

  • text the text to display; should be translated.

Definition at line 87 of file radiobutton.cpp.

QString Plasma::RadioButton::styleSheet (  ) 

Returns:
the stylesheet currently used with this widget

QString Plasma::RadioButton::text (  )  const

Returns:
the display text

void Plasma::RadioButton::toggled ( bool   )  [signal]


Property Documentation

QString Plasma::RadioButton::image [read, write]

Definition at line 45 of file radiobutton.h.

bool Plasma::RadioButton::isChecked [read, write]

Definition at line 48 of file radiobutton.h.

QRadioButton * Plasma::RadioButton::nativeWidget [read]

Definition at line 47 of file radiobutton.h.

QGraphicsWidget Plasma::RadioButton::parentWidget [read]

Definition at line 43 of file radiobutton.h.

QString Plasma::RadioButton::styleSheet [read, write]

Definition at line 46 of file radiobutton.h.

QString Plasma::RadioButton::text [read, write]

Definition at line 44 of file radiobutton.h.


The documentation for this class was generated from the following files:
  • radiobutton.h
  • radiobutton.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
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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