Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgridlayoutengine.cpp File Reference
#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.

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)
 

Function Documentation

◆ compare()

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

Definition at line 48 of file qgridlayoutengine.cpp.

References MaximumSize, and QGridLayoutBox::q_sizes().

+ Here is the call graph for this function:

◆ fixedDescent()

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

Definition at line 35 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 29 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 17 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 107 of file qgridlayoutengine.cpp.

References i, NSizes, QGridLayoutBox::q_minimumAscent, QGridLayoutBox::q_minimumDescent, and QGridLayoutBox::q_sizes().

Referenced by operator!=().

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

◆ visualRect()

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

Definition at line 1012 of file qgridlayoutengine.cpp.

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

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

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