#include "qapplication.h"
#include "qdebug.h"
#include "qformlayout.h"
#include "qlabel.h"
#include "qlayout_p.h"
#include "qlayoutengine_p.h"
#include "qrect.h"
#include "qvector.h"
#include "qwidget.h"
Go to the source code of this file.
|
static Qt::Alignment | fixedAlignment (Qt::Alignment alignment, Qt::LayoutDirection layoutDirection) |
|
static void | initLayoutStruct (QLayoutStruct &sl, QFormLayoutItem *item) |
|
static int | spacingHelper (QWidget *parent, QStyle *style, int userVSpacing, bool recalculate, QFormLayoutItem *item1, QFormLayoutItem *item2, QFormLayoutItem *prevItem1, QFormLayoutItem *prevItem2) |
|
static int | storageIndexFromLayoutItem (const QFormLayoutPrivate::ItemMatrix &m, QFormLayoutItem *item) |
|
static void | updateFormLayoutItem (QFormLayoutItem *item, int userVSpacing, QFormLayout::FieldGrowthPolicy fieldGrowthPolicy, bool fullRow) |
|
◆ anonymous enum
◆ fixedAlignment()
static Qt::Alignment fixedAlignment |
( |
Qt::Alignment |
alignment, |
|
|
Qt::LayoutDirection |
layoutDirection |
|
) |
| |
|
static |
◆ initLayoutStruct()
◆ spacingHelper()
Definition at line 605 of file qformlayout.cpp.
Referenced by QFormLayoutPrivate::setupVerticalLayoutData().
607 int spacing = userVSpacing;
615 if (style && prevItem1) {
616 QSizePolicy::ControlTypes itemtypes =
628 spacing =
qMax(spacing, spacing2);
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
int top() const
Returns the y-coordinate of the rectangle's top edge.
virtual QWidget * widget()
If this item is a QWidget, it is returned as a QWidget; otherwise 0 is returned.
int combinedLayoutSpacing(QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption *option=0, QWidget *widget=0) const
Returns the spacing that should be used between controls1 and controls2 in a layout.
◆ storageIndexFromLayoutItem()
◆ updateFormLayoutItem()
Definition at line 282 of file qformlayout.cpp.
Referenced by QFormLayoutPrivate::updateSizes().
296 item->
vSpace = userVSpacing;
virtual Qt::Orientations expandingDirections() const =0
Returns whether this layout item can make use of more space than sizeHint().
virtual QSize minimumSize() const =0
Implemented in subclasses to return the minimum size of this item.
virtual bool hasHeightForWidth() const
Returns true if this layout's preferred height depends on its width; otherwise returns false...
void setWidth(int w)
Sets the width to the given width.
int width() const
Returns the width.
virtual QSize sizeHint() const =0
Implemented in subclasses to return the preferred size of this item.
virtual QSize maximumSize() const =0
Implemented in subclasses to return the maximum size of this item.
◆ DefaultFieldGrowthPolicy
const uint DefaultFieldGrowthPolicy = 255 |
◆ DefaultRowWrapPolicy
const uint DefaultRowWrapPolicy = 255 |