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
qlayoutengine_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtWidgets/private/qtwidgetsglobal_p.h>
#include "QtWidgets/qlayoutitem.h"
#include "QtWidgets/qstyle.h"
#include <QtCore/qcontainerfwd.h>
+ Include dependency graph for qlayoutengine_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QLayoutStruct
 

Functions

Q_WIDGETS_EXPORT void qGeomCalc (QList< QLayoutStruct > &chain, int start, int count, int pos, int space, int spacer=-1)
 
Q_WIDGETS_EXPORT QSize qSmartMinSize (const QSize &sizeHint, const QSize &minSizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy)
 
Q_WIDGETS_EXPORT QSize qSmartMinSize (const QWidgetItem *i)
 
Q_WIDGETS_EXPORT QSize qSmartMinSize (const QWidget *w)
 
Q_WIDGETS_EXPORT QSize qSmartMaxSize (const QSize &sizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy, Qt::Alignment align={ })
 
Q_WIDGETS_EXPORT QSize qSmartMaxSize (const QWidgetItem *i, Qt::Alignment align={ })
 
Q_WIDGETS_EXPORT QSize qSmartMaxSize (const QWidget *w, Qt::Alignment align={ })
 
Q_WIDGETS_EXPORT int qSmartSpacing (const QLayout *layout, QStyle::PixelMetric pm)
 
static void qMaxExpCalc (int &max, bool &exp, bool &empty, int boxmax, bool boxexp, bool boxempty)
 

Function Documentation

◆ qGeomCalc()

Q_WIDGETS_EXPORT void qGeomCalc ( QList< QLayoutStruct > & chain,
int start,
int count,
int pos,
int space,
int spacer = -1 )

Definition at line 40 of file qlayoutengine.cpp.

References Fixed64, fRound(), i, items, pos, qDebug, qMin(), sum, and toFixed().

Referenced by QBoxLayoutPrivate::calcHfw(), QGridLayoutPrivate::distribute(), distributeMultiBox(), QSplitterPrivate::doResize(), QDockAreaLayoutInfo::fitItems(), QDockAreaLayout::fitLayout(), QGridLayoutPrivate::heightForWidth(), QToolBarLayout::layoutActions(), QTabBarPrivate::layoutTabs(), QBoxLayout::setGeometry(), and QFormLayout::setGeometry().

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

◆ qMaxExpCalc()

static void qMaxExpCalc ( int & max,
bool & exp,
bool & empty,
int boxmax,
bool boxexp,
bool boxempty )
inlinestatic

Definition at line 83 of file qlayoutengine_p.h.

References qMax(), and qMin().

Referenced by QBoxLayoutPrivate::setupGeom().

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

◆ qSmartMaxSize() [1/3]

Q_WIDGETS_EXPORT QSize qSmartMaxSize ( const QSize & sizeHint,
const QSize & minSize,
const QSize & maxSize,
const QSizePolicy & sizePolicy,
Qt::Alignment align = { } )

Definition at line 353 of file qlayoutengine.cpp.

References Qt::AlignHorizontal_Mask, Qt::AlignVertical_Mask, QSize::expandedTo(), QSizePolicy::GrowFlag, hint(), QLAYOUTSIZE_MAX, and QWIDGETSIZE_MAX.

Referenced by QSplitterPrivate::addContribution(), QLayout::closestAcceptableSize(), QSplitterPrivate::doMove(), QSplitterPrivate::doResize(), QWidgetItem::maximumSize(), qSmartMaxSize(), qSmartMaxSize(), QSplitterPrivate::recalc(), and QScrollAreaPrivate::updateScrollBars().

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

◆ qSmartMaxSize() [2/3]

Q_WIDGETS_EXPORT QSize qSmartMaxSize ( const QWidget * w,
Qt::Alignment align = { } )

Definition at line 383 of file qlayoutengine.cpp.

References qSmartMaxSize().

+ Here is the call graph for this function:

◆ qSmartMaxSize() [3/3]

Q_WIDGETS_EXPORT QSize qSmartMaxSize ( const QWidgetItem * i,
Qt::Alignment align = { } )

Definition at line 376 of file qlayoutengine.cpp.

References i, and qSmartMaxSize().

+ Here is the call graph for this function:

◆ qSmartMinSize() [1/3]

Q_WIDGETS_EXPORT QSize qSmartMinSize ( const QSize & sizeHint,
const QSize & minSizeHint,
const QSize & minSize,
const QSize & maxSize,
const QSizePolicy & sizePolicy )

◆ qSmartMinSize() [2/3]

Q_WIDGETS_EXPORT QSize qSmartMinSize ( const QWidget * w)

Definition at line 346 of file qlayoutengine.cpp.

References qSmartMinSize().

+ Here is the call graph for this function:

◆ qSmartMinSize() [3/3]

Q_WIDGETS_EXPORT QSize qSmartMinSize ( const QWidgetItem * i)

Definition at line 338 of file qlayoutengine.cpp.

References i, and qSmartMinSize().

+ Here is the call graph for this function:

◆ qSmartSpacing()

Q_WIDGETS_EXPORT int qSmartSpacing ( const QLayout * layout,
QStyle::PixelMetric pm )

Definition at line 389 of file qlayoutengine.cpp.

References QObject::isWidgetType(), layout, QObject::parent(), QStyle::pixelMetric(), spacing, and QWidget::style().

Referenced by QFormLayout::horizontalSpacing(), QGridLayout::horizontalSpacing(), QLayout::spacing(), QBoxLayout::spacing(), QFormLayout::verticalSpacing(), and QGridLayout::verticalSpacing().

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