![]() |
Qt 6.x
The Qt SDK
|
Public Types | |
using | ItemMatrix = QtPrivate::FixedColumnMatrix< QFormLayoutItem *, 2 > |
![]() | |
typedef QWidgetItem *(* | QWidgetItemFactoryMethod) (const QLayout *layout, QWidget *widget) |
typedef QSpacerItem *(* | QSpacerItemFactoryMethod) (const QLayout *layout, int w, int h, QSizePolicy::Policy hPolicy, QSizePolicy::Policy) |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Additional Inherited Members | |
![]() | |
static QWidgetItem * | createWidgetItem (const QLayout *layout, QWidget *widget) |
static QSpacerItem * | createSpacerItem (const QLayout *layout, int w, int h, QSizePolicy::Policy hPolicy=QSizePolicy::Minimum, QSizePolicy::Policy vPolicy=QSizePolicy::Minimum) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
![]() | |
static QWidgetItemFactoryMethod | widgetItemFactoryMethod = nullptr |
static QSpacerItemFactoryMethod | spacerItemFactoryMethod = nullptr |
Definition at line 148 of file qformlayout.cpp.
Definition at line 153 of file qformlayout.cpp.
QFormLayoutPrivate::QFormLayoutPrivate | ( | ) |
Definition at line 222 of file qformlayout.cpp.
|
inline |
Definition at line 156 of file qformlayout.cpp.
void QFormLayoutPrivate::arrangeWidgets | ( | const QList< QLayoutStruct > & | layouts, |
QRect & | rect | ||
) |
Definition at line 2180 of file qformlayout.cpp.
References Qt::AlignHCenter, Qt::AlignRight, QList< T >::at(), QSize::boundedTo(), fixedAlignment(), formAlignment, formMaxWidth, i, QSize::isValid(), QGuiApplication::layoutDirection, QWidget::layoutDirection, QFormLayoutItem::layoutPos, QFormLayoutItem::layoutWidth, leftOffset, m_matrix, QFormLayoutItem::maxSize, QWidget::parentWidget(), qMin(), QLayoutPrivate::rect, QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount(), QFormLayoutItem::setGeometry(), Qt::Vertical, QStyle::visualRect(), QFormLayoutItem::vLayoutIndex, QRect::width(), QSize::width(), and QRect::x().
void QFormLayoutPrivate::calcSizeHints | ( | ) |
Definition at line 886 of file qformlayout.cpp.
References QList< T >::at(), i, min_width, QLayoutStruct::minimumSize, minSize, prefSize, QLAYOUTSIZE_MAX, qMin(), QSize::rheight(), QSize::rwidth(), setupVerticalLayoutData(), sh_width, QLayoutStruct::sizeHint, spacing, QLayoutStruct::spacing, updateSizes(), vLayoutCount, and vLayouts.
Referenced by QFormLayout::minimumSize(), and QFormLayout::sizeHint().
QStyle * QFormLayoutPrivate::getStyle | ( | ) | const |
Definition at line 985 of file qformlayout.cpp.
References QWidget::parentWidget(), and QApplication::style().
|
inline |
Definition at line 174 of file qformlayout.cpp.
References hfw_sh_height, hfw_width, and sh_width.
int QFormLayoutPrivate::insertRow | ( | int | row | ) |
Definition at line 916 of file qformlayout.cpp.
References insertRows(), m_matrix, and QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount().
void QFormLayoutPrivate::insertRows | ( | int | row, |
int | count | ||
) |
Definition at line 926 of file qformlayout.cpp.
References QtPrivate::FixedColumnMatrix< T, NumColumns >::insertRow(), and m_matrix.
Referenced by insertRow().
void QFormLayoutPrivate::recalcHFW | ( | int | w | ) |
Definition at line 457 of file qformlayout.cpp.
References QList< T >::at(), hfw_height, hfw_sh_height, hfw_sh_minheight, hfw_width, hfwLayouts, QLayoutStruct::minimumSize, QLAYOUTSIZE_MAX, qMin(), setupHfwLayoutData(), sh_width, QLayoutStruct::sizeHint, spacing, QLayoutStruct::spacing, and vLayoutCount.
Referenced by QFormLayout::heightForWidth().
void QFormLayoutPrivate::removeRow | ( | int | row | ) |
Definition at line 934 of file qformlayout.cpp.
References m_matrix, QtPrivate::FixedColumnMatrix< T, NumColumns >::removeRow(), and QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount().
|
overridevirtual |
Reimplemented from QLayoutPrivate.
Definition at line 996 of file qformlayout.cpp.
References QLayoutItem::invalidate(), item, m_matrix, m_things, Q_ASSERT, Q_UNLIKELY, qWarning, storageIndexFromLayoutItem(), QtPrivate::FixedColumnMatrix< QFormLayoutItem *, 2 >::storageIndexToPosition(), and QList< T >::value().
bool QFormLayoutPrivate::setItem | ( | int | row, |
QFormLayout::ItemRole | role, | ||
QLayoutItem * | item | ||
) |
Definition at line 940 of file qformlayout.cpp.
References QList< T >::append(), i, item, m_matrix, m_things, Q_UNLIKELY, qWarning, QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount(), and QFormLayout::SpanningRole.
Referenced by setLayout(), and setWidget().
void QFormLayoutPrivate::setLayout | ( | int | row, |
QFormLayout::ItemRole | role, | ||
QLayout * | layout | ||
) |
Definition at line 965 of file qformlayout.cpp.
References layout, and setItem().
void QFormLayoutPrivate::setupHfwLayoutData | ( | ) |
Definition at line 479 of file qformlayout.cpp.
References QList< T >::at(), QList< T >::clear(), QSize::height(), QFormLayoutItem::heightForWidth(), hfwLayouts, i, QFormLayoutItem::isHfw, QFormLayoutItem::layoutWidth, m_matrix, QLayoutStruct::minimumSize, QFormLayoutItem::minSize, qMax(), QList< T >::resize(), QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount(), QFormLayoutItem::sideBySide, QFormLayoutItem::sizeHint, QLayoutStruct::sizeHint, vLayoutCount, QFormLayoutItem::vLayoutIndex, and vLayouts.
Referenced by recalcHFW().
void QFormLayoutPrivate::setupHorizontalLayoutData | ( | int | width | ) |
Definition at line 832 of file qformlayout.cpp.
References formMaxWidth, QFormLayoutItem::fullRow, i, QFormLayoutItem::layoutPos, QFormLayoutItem::layoutWidth, m_matrix, maxLabelWidth, QFormLayoutItem::maxSize, qMax(), QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount(), QFormLayoutItem::sbsHSpace, QFormLayoutItem::sideBySide, QFormLayoutItem::sizeHint, QSize::width(), and QFormLayout::WrapAllRows.
Referenced by QFormLayout::heightForWidth().
void QFormLayoutPrivate::setupVerticalLayoutData | ( | int | width | ) |
Definition at line 632 of file qformlayout.cpp.
References Qt::AlignBottom, Qt::AlignVCenter, QList< T >::clear(), dirty, QList< T >::empty(), QFormLayoutItem::expandingDirections(), formAlignment, QFormLayoutItem::fullRow, QSize::height(), i, initLayoutStruct(), layoutWidth, m_matrix, maxLabelWidth, QFormLayoutItem::maxSize, QFormLayoutItem::minSize, QWidget::parentWidget(), qMax(), qMin(), QWIDGETSIZE_MAX, QList< T >::resize(), QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount(), rowWrapPolicy, QFormLayoutItem::sideBySide, QFormLayoutItem::sizeHint, sizesDirty, spacingHelper(), QWidget::style(), thresh_width, updateSizes(), Qt::Vertical, vLayoutCount, QFormLayoutItem::vLayoutIndex, vLayouts, QFormLayoutItem::vStretch(), widget, QSize::width(), QFormLayout::WrapAllRows, and QFormLayout::WrapLongRows.
Referenced by calcSizeHints(), and QFormLayout::heightForWidth().
void QFormLayoutPrivate::setWidget | ( | int | row, |
QFormLayout::ItemRole | role, | ||
QWidget * | widget | ||
) |
Definition at line 974 of file qformlayout.cpp.
References QLayoutPrivate::createWidgetItem(), item, setItem(), and widget.
void QFormLayoutPrivate::updateSizes | ( | ) |
Definition at line 274 of file qformlayout.cpp.
References QStyle::combinedLayoutSpacing(), QFormLayoutItem::controlTypes(), QSizePolicy::DefaultType, QFormLayout::DontWrapRows, expandHorizontal, QFormLayoutItem::expandingDirections(), expandVertical, QFormLayoutItem::fullRow, has_hfw, Qt::Horizontal, i, QFormLayoutItem::isHfw, QFormLayoutItem::isHidden(), QSizePolicy::Label, QSizePolicy::LineEdit, m_matrix, min_width, QFormLayoutItem::minSize, o, QObjectData::parent, qMax(), QWIDGETSIZE_MAX, QtPrivate::FixedColumnMatrix< T, NumColumns >::rowCount(), QFormLayoutItem::sbsHSpace, sh_width, QFormLayoutItem::sizeHint, sizesDirty, thresh_width, updateFormLayoutItem(), Qt::Vertical, QFormLayoutItem::vSpace, QSize::width(), and QFormLayout::WrapAllRows.
Referenced by calcSizeHints(), and setupVerticalLayoutData().
uint QFormLayoutPrivate::dirty |
Definition at line 185 of file qformlayout.cpp.
Referenced by setupVerticalLayoutData().
uint QFormLayoutPrivate::expandHorizontal |
Definition at line 188 of file qformlayout.cpp.
Referenced by updateSizes().
uint QFormLayoutPrivate::expandVertical |
Definition at line 187 of file qformlayout.cpp.
Referenced by updateSizes().
uint QFormLayoutPrivate::fieldGrowthPolicy |
Definition at line 182 of file qformlayout.cpp.
Qt::Alignment QFormLayoutPrivate::formAlignment |
Definition at line 190 of file qformlayout.cpp.
Referenced by arrangeWidgets(), and setupVerticalLayoutData().
int QFormLayoutPrivate::formMaxWidth |
Definition at line 208 of file qformlayout.cpp.
Referenced by arrangeWidgets(), and setupHorizontalLayoutData().
uint QFormLayoutPrivate::has_hfw |
Definition at line 184 of file qformlayout.cpp.
Referenced by updateSizes().
int QFormLayoutPrivate::hfw_height = -1 |
Definition at line 198 of file qformlayout.cpp.
Referenced by recalcHFW().
int QFormLayoutPrivate::hfw_sh_height = -1 |
Definition at line 200 of file qformlayout.cpp.
Referenced by haveHfwCached(), and recalcHFW().
int QFormLayoutPrivate::hfw_sh_minheight = -1 |
Definition at line 201 of file qformlayout.cpp.
Referenced by recalcHFW().
int QFormLayoutPrivate::hfw_width = -1 |
Definition at line 197 of file qformlayout.cpp.
Referenced by haveHfwCached(), and recalcHFW().
QList<QLayoutStruct> QFormLayoutPrivate::hfwLayouts |
Definition at line 215 of file qformlayout.cpp.
Referenced by recalcHFW(), and setupHfwLayoutData().
int QFormLayoutPrivate::hSpacing = -1 |
Definition at line 217 of file qformlayout.cpp.
Qt::Alignment QFormLayoutPrivate::labelAlignment |
Definition at line 189 of file qformlayout.cpp.
int QFormLayoutPrivate::layoutWidth = -1 |
Definition at line 195 of file qformlayout.cpp.
Referenced by setupVerticalLayoutData().
ItemMatrix QFormLayoutPrivate::m_matrix |
Definition at line 192 of file qformlayout.cpp.
Referenced by arrangeWidgets(), insertRow(), insertRows(), removeRow(), replaceAt(), setItem(), setupHfwLayoutData(), setupHorizontalLayoutData(), setupVerticalLayoutData(), and updateSizes().
QList<QFormLayoutItem *> QFormLayoutPrivate::m_things |
Definition at line 193 of file qformlayout.cpp.
Referenced by replaceAt(), and setItem().
int QFormLayoutPrivate::maxLabelWidth |
Definition at line 213 of file qformlayout.cpp.
Referenced by setupHorizontalLayoutData(), and setupVerticalLayoutData().
int QFormLayoutPrivate::min_width = -1 |
Definition at line 203 of file qformlayout.cpp.
Referenced by calcSizeHints(), and updateSizes().
QSize QFormLayoutPrivate::minSize |
Definition at line 206 of file qformlayout.cpp.
Referenced by calcSizeHints().
QSize QFormLayoutPrivate::prefSize |
Definition at line 207 of file qformlayout.cpp.
Referenced by calcSizeHints().
uint QFormLayoutPrivate::rowWrapPolicy |
Definition at line 183 of file qformlayout.cpp.
Referenced by setupVerticalLayoutData().
int QFormLayoutPrivate::sh_width = -1 |
Definition at line 204 of file qformlayout.cpp.
Referenced by calcSizeHints(), haveHfwCached(), recalcHFW(), and updateSizes().
uint QFormLayoutPrivate::sizesDirty |
Definition at line 186 of file qformlayout.cpp.
Referenced by setupVerticalLayoutData(), and updateSizes().
int QFormLayoutPrivate::thresh_width = QLAYOUTSIZE_MAX |
Definition at line 205 of file qformlayout.cpp.
Referenced by setupVerticalLayoutData(), and updateSizes().
int QFormLayoutPrivate::vLayoutCount |
Definition at line 212 of file qformlayout.cpp.
Referenced by calcSizeHints(), recalcHFW(), setupHfwLayoutData(), and setupVerticalLayoutData().
QList<QLayoutStruct> QFormLayoutPrivate::vLayouts |
Definition at line 211 of file qformlayout.cpp.
Referenced by calcSizeHints(), setupHfwLayoutData(), and setupVerticalLayoutData().
int QFormLayoutPrivate::vSpacing = -1 |
Definition at line 218 of file qformlayout.cpp.