KDE PIM / Developers / API Docs / kalarm

ButtonGroup Class Reference

A QButtonGroup with signal on new selection, plus Qt 2 compatibility. More...

#include <buttongroup.h>

Inherits QButtonGroup.

Inherited by AlarmTimeWidget.

List of all members.

Signals

Public Member Functions

Protected Member Functions


Detailed Description

A QButtonGroup with signal on new selection, plus Qt 2 compatibility.

The ButtonGroup class provides an enhanced version of the QButtonGroup class.

It emits an additional signal, buttonSet(int), whenever any of its buttons changes state, for whatever reason, including programmatic control. (The QButtonGroup class only emits signals when buttons are clicked on by the user.) The class also provides Qt 2 compatibility.

Author:
David Jarvie <software@astrojar.org.uk>


Constructor & Destructor Documentation

ButtonGroup::ButtonGroup QWidget *  parent,
const char *  name = 0
 

Constructor.

Parameters:
parent The parent object of this widget.
name The name of this widget.

ButtonGroup::ButtonGroup const QString &  title,
QWidget *  parent,
const char *  name = 0
 

Constructor.

Parameters:
title The title displayed for this button group.
parent The parent object of this widget.
name The name of this widget.

ButtonGroup::ButtonGroup int  strips,
Qt::Orientation  orient,
QWidget *  parent,
const char *  name = 0
 

Constructor.

Parameters:
strips The number of rows or columns of buttons.
orient The orientation (Qt::Horizontal or Qt::Vertical) of the button group.
parent The parent object of this widget.
name The name of this widget.

ButtonGroup::ButtonGroup int  strips,
Qt::Orientation  orient,
const QString &  title,
QWidget *  parent,
const char *  name = 0
 

Constructor.

Parameters:
strips The number of rows or columns of buttons.
orient The orientation (Qt::Horizontal or Qt::Vertical) of the button group.
title The title displayed for this button group.
parent The parent object of this widget.
name The name of this widget.

Member Function Documentation

int ButtonGroup::insert QButton *  button,
int  id = -1
 

Inserts a button in the group.

This overrides the insert() method of QButtonGroup, which should really be a virtual method...

Parameters:
button The button to insert.
id The identifier for the button.
Returns:
The identifier of the inserted button.

virtual void ButtonGroup::setButton int  id  )  [inline, virtual]
 

Sets the button with the specified identifier to be on.

If this is an exclusive group, all other buttons in the group will be set off. The buttonSet() signal is emitted.

Parameters:
id The identifier of the button to set on.

void ButtonGroup::buttonSet int  id  )  [signal]
 

Signal emitted whenever whenever any button in the group changes state, for whatever reason.

Parameters:
id The identifier of the button which is now selected.

The documentation for this class was generated from the following files: