24#ifndef KLFFLOWLAYOUT_H
25#define KLFFLOWLAYOUT_H
32struct KLFFlowLayoutPrivate;
56 KLFFlowLayout(QWidget *parent,
int margin = -1,
int hspacing = -1,
int vspacing = -1);
63 virtual void addItem(QLayoutItem *item,
int hstretch,
int vstretch);
64 virtual void addLayout(QLayout *l,
int hstretch = 0,
int vstretch = 0);
69 virtual int count()
const;
70 virtual QLayoutItem *
itemAt(
int index)
const;
71 virtual QLayoutItem *
takeAt(
int index);
87 void clearAll(
bool deleteItems =
true);
94 KLFFlowLayoutPrivate *d;
A Layout that places widgets left to right, top to bottom.
virtual int heightForWidth(int width) const
virtual QSize minimumSize() const
KLFFlowLayout(QWidget *parent, int margin=-1, int hspacing=-1, int vspacing=-1)
virtual int count() const
virtual QLayoutItem * itemAt(int index) const
virtual void invalidate()
virtual QLayoutItem * takeAt(int index)
void clearAll(bool deleteItems=true)
virtual QSize maximumSize() const
virtual void addWidget(QWidget *w, int hstretch=0, int vstretch=0, Qt::Alignment align=0)
virtual void addItem(QLayoutItem *item)
virtual QSize sizeHint() const
virtual bool hasHeightForWidth() const
void setGeometry(const QRect &rect)
virtual void addLayout(QLayout *l, int hstretch=0, int vstretch=0)
@ FlushEnd
Leave all extra space at beginning of line.
@ NoFlush
Give the extra space to the widgets to stretch, don't flush.
@ FlushSparse
Distribute the extra space inbetween the widgets to fill the line.
@ FlushBegin
Leave all extra space at end of line.
virtual bool eventFilter(QObject *obj, QEvent *event)
virtual Qt::Orientations expandingDirections() const
virtual bool event(QEvent *event)
void setVerticalSpacing(int spacing)
void setHorizontalSpacing(int spacing)