42 #ifndef QGRIDLAYOUTENGINE_P_H 43 #define QGRIDLAYOUTENGINE_P_H 102 template <
typename T>
143 : q_minimumSize(0), q_preferredSize(0), q_maximumSize(FLT_MAX),
144 q_minimumDescent(-1), q_minimumAscent(-1) {}
151 void dump(
int indent = 0)
const;
168 t = &q_preferredSize;
174 t = &q_minimumDescent;
177 t = &q_minimumAscent;
193 t = &q_preferredSize;
199 t = &q_minimumDescent;
202 t = &q_minimumAscent;
232 void reset(
int count);
238 void stealBox(
int start,
int end,
int which,
qreal *positions,
qreal *sizes);
241 void dump(
int indent = 0)
const;
258 int rowSpan = 1,
int columnSpan = 1, Qt::Alignment alignment = 0,
259 int itemAtIndex = -1);
265 inline int lastRow()
const {
return firstRow() + rowSpan() - 1; }
266 inline int lastColumn()
const {
return firstColumn() + columnSpan() - 1; }
280 inline Qt::Alignment
alignment()
const {
return q_alignment; }
281 inline void setAlignment(Qt::Alignment alignment) { q_alignment = alignment; }
285 bool hasDynamicConstraint()
const;
288 QSizePolicy::ControlTypes controlTypes(
LayoutSide side)
const;
295 void setGeometry(
const QRectF &rect);
298 QSizeF effectiveMaxSize(
const QSizeF &constraint)
const;
301 void dump(
int indent = 0)
const;
318 void insertOrRemoveRows(
int row,
int delta);
321 void dump(
int indent = 0)
const;
342 int itemCount()
const;
349 void setSpacing(
qreal spacing, Qt::Orientations orientations);
367 void setRowAlignment(
int row, Qt::Alignment alignment,
Qt::Orientation orientation);
368 Qt::Alignment rowAlignment(
int row,
Qt::Orientation orientation)
const;
372 Qt::Alignment effectiveAlignment(
const QGridLayoutItem *layoutItem)
const;
381 { insertOrRemoveRows(row, +1, orientation); }
383 { insertOrRemoveRows(row, -count, orientation); }
388 int column,
int rowSpan,
int columnSpan)
const;
390 const QSizeF &constraint)
const;
394 bool ensureDynamicConstraint()
const;
395 bool hasDynamicConstraint()
const;
399 QSizePolicy::ControlTypes controlTypes(
LayoutSide side)
const;
404 void dump(
int indent = 0)
const;
411 void regenerateGrid();
419 void ensureEffectiveFirstAndLastRows()
const;
QGridLayoutRowData q_columnData
QList< QGridLayoutItem * > q_items
void setCachedValue(T value) const
bool operator!=(const QGridLayoutBox &box1, const QGridLayoutBox &box2)
QGridLayoutEngine * q_engine
#define QT_END_NAMESPACE
This macro expands to.
QLayoutParameter(T value, State state=Default)
QVector< qreal > q_descents
QMap< QPair< int, int >, QGridLayoutMultiCellData > MultiCellMap
Qt::Alignment q_alignment
Q_CORE_EXPORT QTextStream & reset(QTextStream &s)
int internalGridColumnCount() const
QVector< QGridLayoutItem * > q_grid
The QSizeF class defines the size of a two-dimensional object using floating point precision...
QVector< Qt::Alignment > alignments
QGridLayoutRowData q_rowData
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
QVector< QGridLayoutBox > boxes
QVector< QStretchParameter > stretches
void setUserValue(T value)
static const QCssKnownValue positions[NumKnownPositionModes - 1]
bool operator==(const QGridLayoutBox &box1, const QGridLayoutBox &box2)
void removeRows(int row, int count, Qt::Orientation orientation)
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts...
The State element defines configurations of objects and properties.
QVector< QLayoutParameter< qreal > > spacings
MultiCellMap multiCellMap
QGraphicsLayoutItem * layoutItem() const
QGridLayoutMultiCellData()
QVector< qreal > spacings
The QBitArray class provides an array of bits.
void setAlignment(Qt::Alignment alignment)
qreal & q_sizes(int which)
const qreal & q_sizes(int which) const
QVector< qreal > q_heights
static int grossRoundUp(int n)
int internalGridRowCount() const
QVector< qreal > q_widths
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
quint8 q_cachedConstraintOrientation
static QString dump(const QByteArray &)
Qt::Alignment alignment() const
void insertRow(int row, Qt::Orientation orientation=Qt::Vertical)
Qt::LayoutDirection m_visualDirection
T value(T defaultValue) const
QVector< QGridLayoutBox > boxes
static const KeyPair *const end
static void normalize(double &x, double &y)
Q_OUTOFLINE_TEMPLATE void qDeleteAll(ForwardIterator begin, ForwardIterator end)
QGraphicsLayoutItem * q_layoutItem
The QMap class is a template class that provides a skip-list-based dictionary.
QLayoutStyleInfo q_cachedDataForStyleInfo
The QList class is a template class that provides lists.
Qt::LayoutDirection direction