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
qgridlayoutengine.cpp File Reference

(4f3f7d46223b35082a3c3623042ce0c24bc41202)

#include "qglobal.h"
#include "qgridlayoutengine_p.h"
#include "qvarlengtharray.h"
#include <QtDebug>
#include <QtCore/qmath.h>
+ Include dependency graph for qgridlayoutengine.cpp:

Go to the source code of this file.

Macros

#define LAYOUTITEMSIZE_MAX   (1 << 24)
 

Functions

template<typename T >
static void insertOrRemoveItems (QList< T > &items, int index, int delta)
 
static qreal growthFactorBelowPreferredSize (qreal desired, qreal sumAvailable, qreal sumDesired)
 
static qreal fixedDescent (qreal descent, qreal ascent, qreal targetSize)
 
static qreal compare (const QGridLayoutBox &box1, const QGridLayoutBox &box2, int which)
 
bool operator== (const QGridLayoutBox &box1, const QGridLayoutBox &box2)
 
static void visualRect (QRectF *geom, Qt::LayoutDirection dir, const QRectF &contentsRect)
 

Macro Definition Documentation

◆ LAYOUTITEMSIZE_MAX

#define LAYOUTITEMSIZE_MAX   (1 << 24)

Definition at line 16 of file qgridlayoutengine.cpp.

Referenced by QGridLayoutRowData::calculateGeometries().

Function Documentation

◆ compare()

static qreal compare ( const QGridLayoutBox & box1,
const QGridLayoutBox & box2,
int which )
static

Definition at line 50 of file qgridlayoutengine.cpp.

References MaximumSize.

◆ fixedDescent()

static qreal fixedDescent ( qreal descent,
qreal ascent,
qreal targetSize )
static

Definition at line 37 of file qgridlayoutengine.cpp.

References Q_ASSERT.

Referenced by QGridLayoutRowData::calculateGeometries().

+ Here is the caller graph for this function:

◆ growthFactorBelowPreferredSize()

static qreal growthFactorBelowPreferredSize ( qreal desired,
qreal sumAvailable,
qreal sumDesired )
static

Definition at line 31 of file qgridlayoutengine.cpp.

References Q_ASSERT, and qPow().

Referenced by QGridLayoutRowData::calculateGeometries().

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

◆ insertOrRemoveItems()

template<typename T >
static void insertOrRemoveItems ( QList< T > & items,
int index,
int delta )
static

Definition at line 19 of file qgridlayoutengine.cpp.

References QList< T >::insert(), items, qMin(), QList< T >::remove(), and QList< T >::size().

Referenced by QGridLayoutRowInfo::insertOrRemoveRows().

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

◆ operator==()

bool operator== ( const QGridLayoutBox & box1,
const QGridLayoutBox & box2 )

Definition at line 109 of file qgridlayoutengine.cpp.

References i, and NSizes.

Referenced by operator!=().

+ Here is the caller graph for this function:

◆ visualRect()

static void visualRect ( QRectF * geom,
Qt::LayoutDirection dir,
const QRectF & contentsRect )
static

Definition at line 1019 of file qgridlayoutengine.cpp.

References dir, QRectF::left(), QRectF::moveRight(), QRectF::right(), and Qt::RightToLeft.

Referenced by QWindows11Style::drawControl(), QWindowsVistaStyle::drawControl(), QGridLayoutEngine::setGeometries(), QWindowsVistaStyle::subControlRect(), QAndroidStyle::subControlRect(), QWindows11Style::subControlRect(), QWindowsVistaStyle::subElementRect(), QAndroidStyle::AndroidControl::subElementRect(), QAndroidStyle::AndroidProgressBarControl::subElementRect(), and QTreeViewPrivate::visualRect().

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