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

Plasma

  • Plasma
  • CheckBox
Signals | Public Member Functions | Protected Member Functions | Properties

Plasma::CheckBox Class Reference

Provides a Plasma-themed checkbox. More...

#include <Plasma/Widgets/CheckBox>

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

List of all members.

Signals

void toggled (bool)

Public Member Functions

 CheckBox (QGraphicsWidget *parent=0)
 ~CheckBox ()
QString image () const
bool isChecked () const
QCheckBox * 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
QCheckBox nativeWidget
QGraphicsWidget parentWidget
QString styleSheet
QString text

Detailed Description

Provides a Plasma-themed checkbox.

Definition at line 39 of file checkbox.h.


Constructor & Destructor Documentation

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

Definition at line 85 of file checkbox.cpp.

Plasma::CheckBox::~CheckBox ( )

Definition at line 98 of file checkbox.cpp.


Member Function Documentation

void Plasma::CheckBox::changeEvent ( QEvent *  event) [protected]

Definition at line 177 of file checkbox.cpp.

QString Plasma::CheckBox::image ( ) const
Returns:
the image path being displayed currently, or an empty string if none.
bool Plasma::CheckBox::isChecked ( ) const
Returns:
the checked state

Definition at line 172 of file checkbox.cpp.

QCheckBox* Plasma::CheckBox::nativeWidget ( ) const
Returns:
the native widget wrapped by this CheckBox
void Plasma::CheckBox::resizeEvent ( QGraphicsSceneResizeEvent *  event) [protected]

Definition at line 161 of file checkbox.cpp.

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

Sets the checked state.

  • checked true if checked, false if not

Definition at line 167 of file checkbox.cpp.

void Plasma::CheckBox::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 113 of file checkbox.cpp.

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

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

  • stylesheet a CSS string

Definition at line 146 of file checkbox.cpp.

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

Sets the display text for this CheckBox.

  • text the text to display; should be translated.

Definition at line 103 of file checkbox.cpp.

QString Plasma::CheckBox::styleSheet ( )
Returns:
the stylesheet currently used with this widget
QString Plasma::CheckBox::text ( ) const
Returns:
the display text
void Plasma::CheckBox::toggled ( bool  ) [signal]

Property Documentation

bool Plasma::CheckBox::checked [read, write]

Definition at line 48 of file checkbox.h.

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

Definition at line 45 of file checkbox.h.

QCheckBox * Plasma::CheckBox::nativeWidget [read]

Definition at line 47 of file checkbox.h.

QGraphicsWidget Plasma::CheckBox::parentWidget [read]

Definition at line 43 of file checkbox.h.

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

Definition at line 46 of file checkbox.h.

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

Definition at line 44 of file checkbox.h.


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