42 #ifndef QLAYOUTENGINE_P_H 43 #define QLAYOUTENGINE_P_H 56 #include "QtGui/qlayoutitem.h" 57 #include "QtGui/qstyle.h" 61 template <
typename T>
class QVector;
65 inline void init(
int stretchFactor = 0,
int minSize = 0) {
79 return (uniformSpacer >= 0) ? uniformSpacer :
spacing;
101 int pos,
int space,
int spacer = -1);
109 const QSizePolicy &sizePolicy, Qt::Alignment align = 0);
123 int boxmax,
bool boxexp,
bool boxempty)
127 max =
qMax(max, boxmax);
129 if (boxexp || (empty && (!boxempty || max == 0)))
131 else if (empty == boxempty)
132 max =
qMin(max, boxmax);
135 empty = empty && boxempty;
140 #endif // QLAYOUTENGINE_P_H Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
void init(int stretchFactor=0, int minSize=0)
PixelMetric
This enum describes the various available pixel metrics.
The QVector class is a template class that provides a dynamic array.
int effectiveSpacer(int uniformSpacer) const
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QLayout class is the base class of geometry managers.
Q_GUI_EXPORT QSize qSmartMinSize(const QSize &sizeHint, const QSize &minSizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy)
Q_GUI_EXPORT QSize qSmartMaxSize(const QSize &sizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy, Qt::Alignment align=0)
Q_GUI_EXPORT int qSmartSpacing(const QLayout *layout, QStyle::PixelMetric pm)
The QSize class defines the size of a two-dimensional object using integer point precision.
static const int QLAYOUTSIZE_MAX
static void qMaxExpCalc(int &max, bool &exp, bool &empty, int boxmax, bool boxexp, bool boxempty)
Q_GUI_EXPORT void qGeomCalc(QVector< QLayoutStruct > &chain, int start, int count, int pos, int space, int spacer=-1)