libplasma
Plasma::CheckBox Class Reference
#include <checkbox.h>

Detailed Description
Definition at line 35 of file checkbox.h.
Signals | |
void | toggled (bool) |
Public Member Functions | |
CheckBox (QGraphicsWidget *parent=0) | |
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 |
~CheckBox () | |
Protected Member Functions | |
void | resizeEvent (QGraphicsSceneResizeEvent *event) |
Properties | |
QString | image |
bool | isChecked |
QCheckBox | nativeWidget |
QGraphicsWidget | parentWidget |
QString | stylesheet |
QString | text |
Constructor & Destructor Documentation
Plasma::CheckBox::CheckBox | ( | QGraphicsWidget * | parent = 0 |
) | [explicit] |
Definition at line 72 of file checkbox.cpp.
Plasma::CheckBox::~CheckBox | ( | ) |
Definition at line 82 of file checkbox.cpp.
Member Function Documentation
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
QCheckBox* Plasma::CheckBox::nativeWidget | ( | ) | const |
void Plasma::CheckBox::resizeEvent | ( | QGraphicsSceneResizeEvent * | event | ) | [protected] |
Definition at line 145 of file checkbox.cpp.
void Plasma::CheckBox::setChecked | ( | bool | checked | ) |
Sets the checked state.
- checked true if checked, false if not
Definition at line 151 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 97 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 130 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 87 of file checkbox.cpp.
QString Plasma::CheckBox::styleSheet | ( | ) |
QString Plasma::CheckBox::text | ( | ) | const |
- Returns:
- the display text
void Plasma::CheckBox::toggled | ( | bool | ) | [signal] |
Property Documentation
QString Plasma::CheckBox::image [read, write] |
Definition at line 41 of file checkbox.h.
bool Plasma::CheckBox::isChecked [read, write] |
Definition at line 44 of file checkbox.h.
QCheckBox * Plasma::CheckBox::nativeWidget [read] |
Definition at line 43 of file checkbox.h.
QGraphicsWidget Plasma::CheckBox::parentWidget [read] |
Definition at line 39 of file checkbox.h.
QString Plasma::CheckBox::stylesheet [read, write] |
Definition at line 42 of file checkbox.h.
QString Plasma::CheckBox::text [read, write] |
Definition at line 40 of file checkbox.h.
The documentation for this class was generated from the following files: