Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qformlayout.cpp File Reference

(87806f5cad6e4ce75a899598c15c126995682562)

#include "qapplication.h"
#include "qdebug.h"
#include "qformlayout.h"
#include "qlabel.h"
#include "qlayout_p.h"
#include "qlayoutengine_p.h"
#include "qlist.h"
#include "qrect.h"
#include "qwidget.h"
#include "moc_qformlayout.cpp"
Include dependency graph for qformlayout.cpp:

Go to the source code of this file.

Classes

class  QtPrivate::FixedColumnMatrix< T, NumColumns >
struct  QFormLayoutItem
class  QFormLayoutPrivate

Namespaces

namespace  QtPrivate

Functions

static void hideOrShowWidgetsInLayout (QLayout *layout, bool on)
static Qt::Alignment fixedAlignment (Qt::Alignment alignment, Qt::LayoutDirection layoutDirection)
static int storageIndexFromLayoutItem (const QFormLayoutPrivate::ItemMatrix &m, QFormLayoutItem *item)
static void updateFormLayoutItem (QFormLayoutItem *item, int userVSpacing, QFormLayout::FieldGrowthPolicy fieldGrowthPolicy, bool fullRow)
static int spacingHelper (QWidget *parent, QStyle *style, int userVSpacing, bool recalculate, QFormLayoutItem *item1, QFormLayoutItem *item2, QFormLayoutItem *prevItem1, QFormLayoutItem *prevItem2)
static void initLayoutStruct (QLayoutStruct &sl, QFormLayoutItem *item)
static QLayoutItemownershipCleanedItem (QFormLayoutItem *item, QFormLayout *layout)
static void clearAndDestroyQLayoutItem (QLayoutItem *item)

Variables

const uint DefaultFieldGrowthPolicy = 255
const uint DefaultRowWrapPolicy = 255

Function Documentation

◆ clearAndDestroyQLayoutItem()

void clearAndDestroyQLayoutItem ( QLayoutItem * item)
static

Definition at line 1426 of file qformlayout.cpp.

References clearAndDestroyQLayoutItem().

Referenced by clearAndDestroyQLayoutItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fixedAlignment()

Qt::Alignment fixedAlignment ( Qt::Alignment alignment,
Qt::LayoutDirection layoutDirection )
static

Definition at line 230 of file qformlayout.cpp.

◆ hideOrShowWidgetsInLayout()

void hideOrShowWidgetsInLayout ( QLayout * layout,
bool on )
static

Definition at line 122 of file qformlayout.cpp.

Referenced by QFormLayoutItem::setVisible().

Here is the caller graph for this function:

◆ initLayoutStruct()

void initLayoutStruct ( QLayoutStruct & sl,
QFormLayoutItem * item )
inlinestatic

Definition at line 624 of file qformlayout.cpp.

References QLayoutStruct::empty, QLayoutStruct::init(), QLayoutStruct::maximumSize, QLayoutStruct::sizeHint, and QFormLayoutItem::vStretch().

Here is the call graph for this function:

◆ ownershipCleanedItem()

QLayoutItem * ownershipCleanedItem ( QFormLayoutItem * item,
QFormLayout * layout )
static

Definition at line 1407 of file qformlayout.cpp.

References QFormLayoutItem::item.

◆ spacingHelper()

int spacingHelper ( QWidget * parent,
QStyle * style,
int userVSpacing,
bool recalculate,
QFormLayoutItem * item1,
QFormLayoutItem * item2,
QFormLayoutItem * prevItem1,
QFormLayoutItem * prevItem2 )
inlinestatic

Definition at line 583 of file qformlayout.cpp.

◆ storageIndexFromLayoutItem()

int storageIndexFromLayoutItem ( const QFormLayoutPrivate::ItemMatrix & m,
QFormLayoutItem * item )
static

Definition at line 242 of file qformlayout.cpp.

◆ updateFormLayoutItem()

void updateFormLayoutItem ( QFormLayoutItem * item,
int userVSpacing,
QFormLayout::FieldGrowthPolicy fieldGrowthPolicy,
bool fullRow )
static

Variable Documentation

◆ DefaultFieldGrowthPolicy

const uint DefaultFieldGrowthPolicy = 255

Definition at line 69 of file qformlayout.cpp.

Referenced by QFormLayoutPrivate::QFormLayoutPrivate().

◆ DefaultRowWrapPolicy

const uint DefaultRowWrapPolicy = 255

Definition at line 70 of file qformlayout.cpp.

Referenced by QFormLayoutPrivate::QFormLayoutPrivate().