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

KDEUI

Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
KButtonGroup Class Reference

#include <kbuttongroup.h>

Inheritance diagram for KButtonGroup:
QGroupBox

Public Slots

void setSelected (int id)
 

Signals

void changed (int id)
 
void clicked (int id)
 
void pressed (int id)
 
void released (int id)
 

Public Member Functions

 KButtonGroup (QWidget *parent=0)
 
 ~KButtonGroup ()
 
int id (QAbstractButton *button) const
 
int selected () const
 

Protected Member Functions

virtual void childEvent (QChildEvent *event)
 

Properties

int current
 

Detailed Description

Group box with index of the selected button KButtonGroup is a simple group box that can keep track of the current selected button of the ones added to it.

Use normally as you would with a QGroupBox.

KDE Button Group containing 3 KPushButtons
Author
Pino Toscano tosca.nosp@m.no.p.nosp@m.ino@t.nosp@m.isca.nosp@m.li.it

Definition at line 41 of file kbuttongroup.h.

Constructor & Destructor Documentation

◆ KButtonGroup()

KButtonGroup::KButtonGroup ( QWidget *  parent = 0)
explicit

Construct a new empty KGroupBox.

Definition at line 59 of file kbuttongroup.cpp.

◆ ~KButtonGroup()

KButtonGroup::~KButtonGroup ( )

Destroys the widget.

Definition at line 63 of file kbuttongroup.cpp.

Member Function Documentation

◆ changed

void KButtonGroup::changed ( int  id)
signal

Emitted when anything (a click on a button, or calling setSelected()) change the id of the current selected.

id is the index of the new selected button.

◆ childEvent()

void KButtonGroup::childEvent ( QChildEvent *  event)
protectedvirtual

Reimplemented from QGroupBox.

Definition at line 98 of file kbuttongroup.cpp.

◆ clicked

void KButtonGroup::clicked ( int  id)
signal

The button with index id was clicked.

◆ id()

int KButtonGroup::id ( QAbstractButton *  button) const
Returns
the index of button.
Since
4.3

Definition at line 144 of file kbuttongroup.cpp.

◆ pressed

void KButtonGroup::pressed ( int  id)
signal

The button with index id was pressed.

◆ released

void KButtonGroup::released ( int  id)
signal

The button with index id was released.

◆ selected()

int KButtonGroup::selected ( ) const

Return the index of the selected QAbstractButton, among the QAbstractButton's added to the widget.

Returns
the index of the selected button

Definition at line 93 of file kbuttongroup.cpp.

◆ setSelected

void KButtonGroup::setSelected ( int  id)
slot

Select the id -th button.

Definition at line 68 of file kbuttongroup.cpp.

Property Documentation

◆ current

int KButtonGroup::current
readwrite

Definition at line 1 of file kbuttongroup.h.


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

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • 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