A Layout that places widgets left to right, top to bottom. More...
#include <klfflowlayout.h>
Public Types | |
enum | Flush { NoFlush = 0, FlushSparse, FlushBegin, FlushEnd } |
Public Slots | |
void | clearAll (bool deleteItems=true) |
void | setHorizontalSpacing (int spacing) |
void | setVerticalSpacing (int spacing) |
void | setFlush (Flush f) |
Public Member Functions | |
KLFFlowLayout (QWidget *parent, int margin=-1, int hspacing=-1, int vspacing=-1) | |
virtual | ~KLFFlowLayout () |
virtual void | addItem (QLayoutItem *item) |
virtual void | addItem (QLayoutItem *item, int hstretch, int vstretch) |
virtual void | addLayout (QLayout *l, int hstretch=0, int vstretch=0) |
virtual void | addWidget (QWidget *w, int hstretch=0, int vstretch=0, Qt::Alignment align=0) |
int | horizontalSpacing () const |
int | verticalSpacing () const |
Flush | flush () const |
virtual int | count () const |
virtual QLayoutItem * | itemAt (int index) const |
virtual QLayoutItem * | takeAt (int index) |
virtual Qt::Orientations | expandingDirections () const |
virtual bool | hasHeightForWidth () const |
virtual int | heightForWidth (int width) const |
virtual QSize | minimumSize () const |
virtual QSize | maximumSize () const |
virtual QSize | sizeHint () const |
void | setGeometry (const QRect &rect) |
virtual void | invalidate () |
virtual bool | event (QEvent *event) |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Properties | |
Flush | flush |
int | horizontalSpacing |
int | verticalSpacing |
A Layout that places widgets left to right, top to bottom.
Definition at line 38 of file klfflowlayout.h.
enum KLFFlowLayout::Flush |
How to deal with too much space:
Definition at line 49 of file klfflowlayout.h.
KLFFlowLayout::KLFFlowLayout | ( | QWidget * | parent, |
int | margin = -1 , |
||
int | hspacing = -1 , |
||
int | vspacing = -1 |
||
) |
Definition at line 417 of file klfflowlayout.cpp.
|
virtual |
Definition at line 429 of file klfflowlayout.cpp.
|
inlinevirtual |
Add a QLayoutItem to the layout. Ownership of the object is taken by the layout: it will be deleted by the layout.
Definition at line 61 of file klfflowlayout.h.
References addLayout(), addWidget(), Qt::Alignment, clearAll(), count(), event(), eventFilter(), expandingDirections(), flush(), hasHeightForWidth(), heightForWidth(), horizontalSpacing(), invalidate(), itemAt(), maximumSize(), minimumSize(), Qt::Orientations, setFlush(), setGeometry(), setHorizontalSpacing(), setVerticalSpacing(), sizeHint(), takeAt(), and verticalSpacing().
Referenced by addLayout(), and addWidget().
|
virtual |
Definition at line 445 of file klfflowlayout.cpp.
References invalidate().
|
virtual |
Definition at line 463 of file klfflowlayout.cpp.
References addItem(), and horizontalSpacing().
Referenced by addItem().
|
virtual |
Definition at line 453 of file klfflowlayout.cpp.
References addItem().
Referenced by addItem(), KLFFlowListWidget::insertItem(), and KLFColorChooseWidget::setAlphaEnabled().
|
slot |
Definition at line 582 of file klfflowlayout.cpp.
References takeAt().
Referenced by addItem(), and KLFColorChooseWidget::setAlphaEnabled().
|
virtual |
Definition at line 497 of file klfflowlayout.cpp.
Referenced by addItem().
|
virtual |
Definition at line 435 of file klfflowlayout.cpp.
Referenced by addItem().
Definition at line 440 of file klfflowlayout.cpp.
Referenced by addItem().
|
virtual |
Definition at line 522 of file klfflowlayout.cpp.
Referenced by addItem().
Flush KLFFlowLayout::flush | ( | ) | const |
Referenced by addItem(), and setVerticalSpacing().
|
virtual |
Definition at line 527 of file klfflowlayout.cpp.
Referenced by addItem().
|
virtual |
Definition at line 531 of file klfflowlayout.cpp.
Referenced by addItem().
int KLFFlowLayout::horizontalSpacing | ( | ) | const |
Referenced by addItem(), and addLayout().
|
virtual |
Definition at line 575 of file klfflowlayout.cpp.
Referenced by addItem(), setFlush(), setGeometry(), setHorizontalSpacing(), and setVerticalSpacing().
|
virtual |
Definition at line 501 of file klfflowlayout.cpp.
Referenced by addItem().
|
virtual |
Definition at line 548 of file klfflowlayout.cpp.
References QSize::expandedTo(), and klfDbg.
Referenced by addItem().
|
virtual |
|
slot |
Definition at line 492 of file klfflowlayout.cpp.
References invalidate().
Referenced by addItem(), KLFColorChooseWidget::KLFColorChooseWidget(), and KLFFlowListWidget::KLFFlowListWidget().
void KLFFlowLayout::setGeometry | ( | const QRect & | rect | ) |
Definition at line 555 of file klfflowlayout.cpp.
References invalidate(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and klfDbg.
Referenced by addItem().
|
slot |
Definition at line 473 of file klfflowlayout.cpp.
References invalidate(), and verticalSpacing().
Referenced by addItem().
|
slot |
Definition at line 482 of file klfflowlayout.cpp.
References flush(), and invalidate().
Referenced by addItem().
|
virtual |
|
virtual |
Definition at line 509 of file klfflowlayout.cpp.
Referenced by addItem(), and clearAll().
int KLFFlowLayout::verticalSpacing | ( | ) | const |
Referenced by addItem(), and setHorizontalSpacing().
|
readwrite |
Definition at line 43 of file klfflowlayout.h.
|
readwrite |
Definition at line 43 of file klfflowlayout.h.
|
readwrite |
Definition at line 44 of file klfflowlayout.h.