Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgridlayoutengine.cpp File Reference

(64fe7d29760487b6f8b0510c20da3da065ed66bd)

#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 17 of file qgridlayoutengine.cpp.

Function Documentation

◆ compare()

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

Definition at line 51 of file qgridlayoutengine.cpp.

References MaximumSize.

◆ fixedDescent()

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

Definition at line 38 of file qgridlayoutengine.cpp.

◆ growthFactorBelowPreferredSize()

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

Definition at line 32 of file qgridlayoutengine.cpp.

◆ insertOrRemoveItems()

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

Definition at line 20 of file qgridlayoutengine.cpp.

◆ operator==()

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

Definition at line 110 of file qgridlayoutengine.cpp.

References NSizes.

◆ visualRect()

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

Definition at line 1021 of file qgridlayoutengine.cpp.