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.
| KLFFlowLayout::~KLFFlowLayout | ( | ) | [virtual] |
Definition at line 429 of file klfflowlayout.cpp.
| virtual void KLFFlowLayout::addItem | ( | QLayoutItem * | item | ) | [inline, virtual] |
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 addItem().
Referenced by addItem(), addLayout(), and addWidget().
| void KLFFlowLayout::addItem | ( | QLayoutItem * | item, |
| int | hstretch, | ||
| int | vstretch | ||
| ) | [virtual] |
Definition at line 445 of file klfflowlayout.cpp.
References invalidate().
| void KLFFlowLayout::addLayout | ( | QLayout * | l, |
| int | hstretch = 0, |
||
| int | vstretch = 0 |
||
| ) | [virtual] |
Definition at line 463 of file klfflowlayout.cpp.
References addItem().
| void KLFFlowLayout::addWidget | ( | QWidget * | w, |
| int | hstretch = 0, |
||
| int | vstretch = 0, |
||
| Qt::Alignment | align = 0 |
||
| ) | [virtual] |
Definition at line 453 of file klfflowlayout.cpp.
References addItem().
Referenced by KLFFlowListWidget::insertItem().
| void KLFFlowLayout::clearAll | ( | bool | deleteItems = true | ) | [slot] |
Definition at line 582 of file klfflowlayout.cpp.
References takeAt().
| int KLFFlowLayout::count | ( | ) | const [virtual] |
Definition at line 497 of file klfflowlayout.cpp.
| bool KLFFlowLayout::event | ( | QEvent * | event | ) | [virtual] |
Definition at line 435 of file klfflowlayout.cpp.
| bool KLFFlowLayout::eventFilter | ( | QObject * | obj, |
| QEvent * | event | ||
| ) | [virtual] |
Definition at line 440 of file klfflowlayout.cpp.
| Qt::Orientations KLFFlowLayout::expandingDirections | ( | ) | const [virtual] |
Definition at line 522 of file klfflowlayout.cpp.
| Flush KLFFlowLayout::flush | ( | ) | const |
| bool KLFFlowLayout::hasHeightForWidth | ( | ) | const [virtual] |
Definition at line 527 of file klfflowlayout.cpp.
| int KLFFlowLayout::heightForWidth | ( | int | width | ) | const [virtual] |
Definition at line 531 of file klfflowlayout.cpp.
| int KLFFlowLayout::horizontalSpacing | ( | ) | const |
| void KLFFlowLayout::invalidate | ( | ) | [virtual] |
Definition at line 575 of file klfflowlayout.cpp.
Referenced by addItem(), setFlush(), setGeometry(), setHorizontalSpacing(), and setVerticalSpacing().
| QLayoutItem * KLFFlowLayout::itemAt | ( | int | index | ) | const [virtual] |
Definition at line 501 of file klfflowlayout.cpp.
| QSize KLFFlowLayout::maximumSize | ( | ) | const [virtual] |
Definition at line 548 of file klfflowlayout.cpp.
References QSize::expandedTo(), and klfDbg.
| QSize KLFFlowLayout::minimumSize | ( | ) | const [virtual] |
Definition at line 540 of file klfflowlayout.cpp.
References klfDbg.
| void KLFFlowLayout::setFlush | ( | Flush | f | ) | [slot] |
Definition at line 492 of file klfflowlayout.cpp.
References invalidate().
Referenced by 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.
| void KLFFlowLayout::setHorizontalSpacing | ( | int | spacing | ) | [slot] |
Definition at line 473 of file klfflowlayout.cpp.
References invalidate().
| void KLFFlowLayout::setVerticalSpacing | ( | int | spacing | ) | [slot] |
Definition at line 482 of file klfflowlayout.cpp.
References invalidate().
| QSize KLFFlowLayout::sizeHint | ( | ) | const [virtual] |
Definition at line 567 of file klfflowlayout.cpp.
References klfDbg.
| QLayoutItem * KLFFlowLayout::takeAt | ( | int | index | ) | [virtual] |
Definition at line 509 of file klfflowlayout.cpp.
Referenced by clearAll().
| int KLFFlowLayout::verticalSpacing | ( | ) | const |
KLFFlowLayout::Flush KLFFlowLayout::flush [read, write] |
Definition at line 43 of file klfflowlayout.h.
int KLFFlowLayout::horizontalSpacing [read, write] |
Definition at line 43 of file klfflowlayout.h.
int KLFFlowLayout::verticalSpacing [read, write] |
Definition at line 44 of file klfflowlayout.h.