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

Plasma

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

#include <Plasma/Widgets/CheckBox>

Inheritance diagram for Plasma::CheckBox:
QGraphicsProxyWidget

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

◆ CheckBox()

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

Definition at line 84 of file checkbox.cpp.

◆ ~CheckBox()

Plasma::CheckBox::~CheckBox ( )

Definition at line 97 of file checkbox.cpp.

Member Function Documentation

◆ changeEvent()

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

Definition at line 176 of file checkbox.cpp.

◆ image()

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

Definition at line 140 of file checkbox.cpp.

◆ isChecked()

bool Plasma::CheckBox::isChecked ( ) const
Returns
the checked state

Definition at line 171 of file checkbox.cpp.

◆ nativeWidget()

QCheckBox * Plasma::CheckBox::nativeWidget ( ) const
Returns
the native widget wrapped by this CheckBox

Definition at line 155 of file checkbox.cpp.

◆ resizeEvent()

void Plasma::CheckBox::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 160 of file checkbox.cpp.

◆ setChecked()

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

Sets the checked state.

Parameters
checkedtrue if checked, false if not

Definition at line 166 of file checkbox.cpp.

◆ setImage()

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

◆ setStyleSheet()

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

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

Parameters
stylesheeta CSS string

Definition at line 145 of file checkbox.cpp.

◆ setText()

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

Sets the display text for this CheckBox.

Parameters
textthe text to display; should be translated.

Definition at line 102 of file checkbox.cpp.

◆ styleSheet()

QString Plasma::CheckBox::styleSheet ( )
Returns
the stylesheet currently used with this widget

◆ text()

QString Plasma::CheckBox::text ( ) const
Returns
the display text

Definition at line 107 of file checkbox.cpp.

◆ toggled

void Plasma::CheckBox::toggled ( bool  )
signal

Property Documentation

◆ checked

bool Plasma::CheckBox::checked
readwrite

Definition at line 1 of file checkbox.h.

◆ image

QString Plasma::CheckBox::image
readwrite

Definition at line 1 of file checkbox.h.

◆ nativeWidget

QCheckBox * Plasma::CheckBox::nativeWidget
read

Definition at line 1 of file checkbox.h.

◆ parentWidget

QGraphicsWidget * Plasma::CheckBox::parentWidget
read

Definition at line 1 of file checkbox.h.

◆ styleSheet

QString Plasma::CheckBox::styleSheet
readwrite

Definition at line 1 of file checkbox.h.

◆ text

QString Plasma::CheckBox::text
readwrite

Definition at line 1 of file checkbox.h.


The documentation for this class was generated from the following files:
  • checkbox.h
  • checkbox.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

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