[kdeui Index] [kdeui Hierarchy] [Headers]
#include <kbuttonbox.h>
Inherits: QWidget (qt)
[public]
Creates an empty container for buttons. If _orientation is KButtonBox::VERTICAL, the buttons inserted with @see addButton are layouted from top to bottom, otherwise they are layouted from left to right.
[public]
The destructor is needed, otherwise gcc 2.7.2.1 may report an internal compiler error. It does nothing.
[public]
adds a new @see QPushButton and @return a pointer to the newly created button. If noexpand is FALSE, the width of the button is adjusted to fit the other buttons (the maximum of all buttons is taken). If noexpand is TRUE, the width of this button will be set to the minimum width needed for the given text).
[public]
This adds a stretch to the buttonbox. @see QBoxLayout for details. Can be used to separate buttons (i.e. if you add the buttons "OK", "Cancel", add a stretch and then add the button "Help", "OK" and "Cancel" will be left-aligned (or top-aligned for vertical) while "Help" will be right-aligned (or bottom-aligned for vertical).
[public]
This function must be called ONCE after all buttons have been inserted. It will start layout control.
Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:27 CEST 1999 | Kdoc |