Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qformlayout.cpp File Reference

(e73389874d6f8dbfc4743c51eb3d3889dd2da7fb)

#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
 \macro QT_NO_KEYWORDS >
 

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()

static void clearAndDestroyQLayoutItem ( QLayoutItem * item)
static

Definition at line 1421 of file qformlayout.cpp.

References child, clearAndDestroyQLayoutItem(), item, layout, Q_LIKELY, and QBoxLayout::takeAt().

Referenced by clearAndDestroyQLayoutItem(), QFormLayout::removeRow(), QFormLayout::removeRow(), and QFormLayout::removeRow().

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

◆ fixedAlignment()

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

Definition at line 229 of file qformlayout.cpp.

References Qt::AlignAbsolute, Qt::AlignLeft, alignment, Qt::AlignRight, and Qt::RightToLeft.

Referenced by QFormLayoutPrivate::arrangeWidgets().

+ Here is the caller graph for this function:

◆ hideOrShowWidgetsInLayout()

static void hideOrShowWidgetsInLayout ( QLayout * layout,
bool on )
static

Definition at line 121 of file qformlayout.cpp.

References QBoxLayout::count(), hideOrShowWidgetsInLayout(), i, item, QBoxLayout::itemAt(), layout, QWidget::setVisible(), and widget.

Referenced by hideOrShowWidgetsInLayout(), and QFormLayoutItem::setVisible().

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

◆ initLayoutStruct()

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

Definition at line 623 of file qformlayout.cpp.

References item, and Qt::Vertical.

Referenced by QFormLayoutPrivate::setupVerticalLayoutData().

+ Here is the caller graph for this function:

◆ ownershipCleanedItem()

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

Definition at line 1402 of file qformlayout.cpp.

References i, item, layout, and QLayout::layout().

Referenced by QFormLayout::takeAt(), and QFormLayout::takeRow().

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

◆ spacingHelper()

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

Definition at line 582 of file qformlayout.cpp.

References QStyle::combinedLayoutSpacing(), QSizePolicy::DefaultType, QWidget::geometry, qMax(), spacing, QRect::top(), and Qt::Vertical.

Referenced by QFormLayoutPrivate::setupVerticalLayoutData().

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

◆ storageIndexFromLayoutItem()

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

Definition at line 241 of file qformlayout.cpp.

References item.

Referenced by QFormLayout::getItemPosition(), QFormLayoutPrivate::replaceAt(), and QFormLayout::takeAt().

+ Here is the caller graph for this function:

◆ updateFormLayoutItem()

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

Definition at line 251 of file qformlayout.cpp.

References QFormLayout::ExpandingFieldsGrow, QFormLayout::FieldsStayAtSizeHint, Qt::Horizontal, and item.

Referenced by QFormLayoutPrivate::updateSizes().

+ Here is the caller graph for this function:

Variable Documentation

◆ DefaultFieldGrowthPolicy

const uint DefaultFieldGrowthPolicy = 255

Definition at line 68 of file qformlayout.cpp.

Referenced by QFormLayout::fieldGrowthPolicy().

◆ DefaultRowWrapPolicy

const uint DefaultRowWrapPolicy = 255

Definition at line 69 of file qformlayout.cpp.

Referenced by QFormLayout::rowWrapPolicy().