KDE PIM / Developers / API Docs / kalarm

PushButton Class Reference

A QPushButton with read-only option. More...

#include <pushbutton.h>

Inherits QPushButton.

Inherited by FontColourButton.

List of all members.

Public Member Functions

Protected Member Functions

Properties


Detailed Description

A QPushButton with read-only option.

The PushButton class is a QPushButton with a read-only option.

The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.

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


Constructor & Destructor Documentation

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

Constructor.

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

PushButton::PushButton const QString &  text,
QWidget *  parent,
const char *  name = 0
 

Constructor for a push button which displays a text.

Parameters:
text The text to show on the button.
parent The parent object of this widget.
name The name of this widget.

PushButton::PushButton const QIconSet &  icon,
const QString &  text,
QWidget *  parent,
const char *  name = 0
 

Constructor for a push button which displays an icon and a text.

Parameters:
icon The icon to show on the button.
text The text to show on the button.
parent The parent object of this widget.
name The name of this widget.

Member Function Documentation

void PushButton::setReadOnly bool  readOnly  )  [virtual]
 

Sets whether the push button is read-only for the user.

Parameters:
readOnly True to set the widget read-only, false to enable its action.

virtual bool PushButton::isReadOnly  )  const [inline, virtual]
 

Returns true if the widget is read only.


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