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

Plasma

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

#include <Plasma/Widgets/RadioButton>

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

Signals

void toggled (bool)
 

Public Member Functions

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

Protected Member Functions

void changeEvent (QEvent *event)
 
void resizeEvent (QGraphicsSceneResizeEvent *event)
 

Properties

bool checked
 
QString image
 
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 74 of file radiobutton.cpp.

Plasma::RadioButton::~RadioButton ( )

Definition at line 86 of file radiobutton.cpp.

Member Function Documentation

void Plasma::RadioButton::changeEvent ( QEvent *  event)
protected

Definition at line 165 of file radiobutton.cpp.

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

Definition at line 160 of file radiobutton.cpp.

QRadioButton* Plasma::RadioButton::nativeWidget ( ) const
Returns
the native widget wrapped by this RadioButton
void Plasma::RadioButton::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 149 of file radiobutton.cpp.

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

Sets the checked state.

Parameters
checkedtrue if checked, false if not

Definition at line 155 of file radiobutton.cpp.

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

Sets the path to an image to display.

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

Definition at line 101 of file radiobutton.cpp.

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

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

Parameters
stylesheeta CSS string

Definition at line 134 of file radiobutton.cpp.

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

Sets the display text for this RadioButton.

Parameters
textthe text to display; should be translated.

Definition at line 91 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

bool Plasma::RadioButton::checked
readwrite

Definition at line 48 of file radiobutton.h.

QString Plasma::RadioButton::image
readwrite

Definition at line 45 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
readwrite

Definition at line 46 of file radiobutton.h.

QString Plasma::RadioButton::text
readwrite

Definition at line 44 of file radiobutton.h.


The documentation for this class was generated from the following files:
  • radiobutton.h
  • radiobutton.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