KTypeLayout Class Reference

[NewKrn Index] [NewKrn Hierarchy] [Headers]


Class to create dialogs, using typographical layout More...

#include <typelayout.h>

Inherits: QObject

Public Members


Detailed Description

Class to create dialogs, using typographical layout


KTypeLayout() [public]

Create a KTypeLayout inside of the parent widgetWARNING: parent's size will probably be affected, since it will have to be at least large enough to contain its children.

void activate() [public]

No more children will be added, so geometry management can be doneUnlike the Qt layout managers, you CAN NOT add any more children after this, or nasty things will happen.

QWidget* addWidget(QWidget *w,const char *ID=0) [public]

Adds a widget to the layout.Since KTypeLayout tends to shrink things to its minimum size and then stretch them, you should be careful and set minimum/fixed/maximum sizes for your widget. Use only if none of the convenience addXXX functions works for you. Returns a pointer to the TLobj with the widget.

void newLine(int stretch=10, int spacing=0) [public]

Ends a line of widgets, and starts a new one. Think about itas pressing "return" in a word processor. stretch and spacing call QGridLayout::setRowStretch() and QGridLayout::addRowSpacing() for the row that is ending. A trailing row with no objects in it will not do anything.


Documentation generated by ralsina@thurman.localnet on Tue Jun 8 22:28:00 /etc/localtime 1999
Kdoc