21 #ifndef __ctkFlowLayout_h
22 #define __ctkFlowLayout_h
28 #include "ctkWidgetsExport.h"
29 class ctkFlowLayoutPrivate;
45 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
55 Q_PROPERTY(Qt::Orientations preferredExpandingDirections READ preferredExpandingDirections WRITE setPreferredExpandingDirections)
61 Q_PROPERTY(
bool alignItems READ alignItems WRITE setAlignItems)
67 Q_PROPERTY(
int horizontalSpacing READ horizontalSpacing WRITE setHorizontalSpacing)
73 Q_PROPERTY(
int verticalSpacing READ verticalSpacing WRITE setVerticalSpacing)
77 explicit ctkFlowLayout(Qt::Orientation orientation, QWidget* parent = 0);
120 virtual QLayoutItem *
itemAt(
int index)
const;
127 QScopedPointer<ctkFlowLayoutPrivate>
d_ptr;
void setOrientation(Qt::Orientation orientation)
virtual bool hasHeightForWidth() const
ctkFlowLayout(QWidget *parent)
virtual Qt::Orientations expandingDirections() const
void setVerticalSpacing(int)
virtual bool hasWidthForHeight() const
virtual int count() const
Qt::Orientation orientation() const
int horizontalSpacing() const
virtual QLayoutItem * takeAt(int index)
QScopedPointer< ctkFlowLayoutPrivate > d_ptr
virtual int widthForHeight(int) const
virtual void setGeometry(const QRect &rect)
int verticalSpacing() const
Qt::Orientations preferredExpandingDirections() const
void setPreferredExpandingDirections(Qt::Orientations directions)
virtual void addItem(QLayoutItem *item)
Reimplemented for internal reasons.
ctkFlowLayout(Qt::Orientation orientation, QWidget *parent=0)
void setHorizontalSpacing(int)
static ctkFlowLayout * replaceLayout(QWidget *widget)
virtual QSize sizeHint() const
virtual int heightForWidth(int) const
virtual QSize minimumSize() const
virtual QLayoutItem * itemAt(int index) const