• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KDialogButtonBox Class Reference

Container widget for buttons. More...

#include <kdialogbuttonbox.h>

Inheritance diagram for KDialogButtonBox:
QDialogButtonBox

List of all members.

Public Member Functions

KPushButton * addButton (const KGuiItem &guiitem, ButtonRole role, QObject *receiver=0, const char *slot=0)
QPushButton * addButton (const QString &text, ButtonRole role, QObject *receiver, const char *slot)
 KDialogButtonBox (QWidget *parent, Qt::Orientation _orientation=Qt::Horizontal)
 ~KDialogButtonBox ()

Detailed Description

Container widget for buttons.

An extension of QDialogButtonBox which allow the use of KGuiItem and conveniance slot connection.

Author:
Mario Weilguni <mweilguni@sime.com>
Olivier Goffart <ogoffart@kde.org>

Definition at line 43 of file kdialogbuttonbox.h.


Constructor & Destructor Documentation

KDialogButtonBox::KDialogButtonBox ( QWidget *  parent,
Qt::Orientation  _orientation = Qt::Horizontal 
) [explicit]

Create an empty container for buttons.

If _orientation is Vertical, the buttons inserted with addButton() are laid out from top to bottom, otherwise they are laid out from left to right.

Definition at line 29 of file kdialogbuttonbox.cpp.

KDialogButtonBox::~KDialogButtonBox (  ) 

Free private data field.

Definition at line 34 of file kdialogbuttonbox.cpp.


Member Function Documentation

KPushButton * KDialogButtonBox::addButton ( const KGuiItem &  guiitem,
ButtonRole  role,
QObject *  receiver = 0,
const char *  slot = 0 
)

Creates a push button with the given KUiItem, adds it to the button box for the specified role, and returns the corresponding push button.

If role is invalid, the button is created, but not added.

The clicked signal of the button is automatically connected to the slot

Parameters:
guiitem text and icon on the button
role the button role
receiver An object to connect to.
slot A Qt slot to connect the 'clicked()' signal to.
Returns:
A pointer to the new button.

Definition at line 46 of file kdialogbuttonbox.cpp.

QPushButton * KDialogButtonBox::addButton ( const QString &  text,
ButtonRole  role,
QObject *  receiver,
const char *  slot 
)

Creates a push button with the given text, adds it to the button box for the specified role, and returns the corresponding push button.

If role is invalid, no button is created, and zero is returned.

The clicked signal of the button is automatically connected to the slot

Parameters:
text the text of the button to add.
role the button role
receiver An object to connect to.
slot A Qt slot to connect the 'clicked()' signal to.
Returns:
A pointer to the new button.

Definition at line 36 of file kdialogbuttonbox.cpp.


The documentation for this class was generated from the following files:
  • kdialogbuttonbox.h
  • kdialogbuttonbox.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal