constify some functions to improve readability
Change-Id: I4a5e68367f281f743a631272f57a848dc2833d12 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
This commit is contained in:
parent
2ee59c20ae
commit
022f0a020a
@ -1291,7 +1291,7 @@ void QGridLayoutEngine::insertOrRemoveRows(int row, int delta, Qt::Orientation o
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QGridLayoutEngine::fillRowData(QGridLayoutRowData *rowData,
|
void QGridLayoutEngine::fillRowData(QGridLayoutRowData *rowData,
|
||||||
qreal *colPositions, qreal *colSizes,
|
const qreal *colPositions, const qreal *colSizes,
|
||||||
Qt::Orientation orientation,
|
Qt::Orientation orientation,
|
||||||
const QAbstractLayoutStyleInfo *styleInfo) const
|
const QAbstractLayoutStyleInfo *styleInfo) const
|
||||||
{
|
{
|
||||||
@ -1545,7 +1545,7 @@ void QGridLayoutEngine::ensureEffectiveFirstAndLastRows() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QGridLayoutEngine::ensureColumnAndRowData(QGridLayoutRowData *rowData, QGridLayoutBox *totalBox,
|
void QGridLayoutEngine::ensureColumnAndRowData(QGridLayoutRowData *rowData, QGridLayoutBox *totalBox,
|
||||||
qreal *colPositions, qreal *colSizes,
|
const qreal *colPositions, const qreal *colSizes,
|
||||||
Qt::Orientation orientation,
|
Qt::Orientation orientation,
|
||||||
const QAbstractLayoutStyleInfo *styleInfo) const
|
const QAbstractLayoutStyleInfo *styleInfo) const
|
||||||
{
|
{
|
||||||
|
@ -425,12 +425,12 @@ private:
|
|||||||
void setItemAt(int row, int column, QGridLayoutItem *item);
|
void setItemAt(int row, int column, QGridLayoutItem *item);
|
||||||
void insertOrRemoveRows(int row, int delta, Qt::Orientation orientation = Qt::Vertical);
|
void insertOrRemoveRows(int row, int delta, Qt::Orientation orientation = Qt::Vertical);
|
||||||
void fillRowData(QGridLayoutRowData *rowData,
|
void fillRowData(QGridLayoutRowData *rowData,
|
||||||
qreal *colPositions, qreal *colSizes,
|
const qreal *colPositions, const qreal *colSizes,
|
||||||
Qt::Orientation orientation,
|
Qt::Orientation orientation,
|
||||||
const QAbstractLayoutStyleInfo *styleInfo) const;
|
const QAbstractLayoutStyleInfo *styleInfo) const;
|
||||||
void ensureEffectiveFirstAndLastRows() const;
|
void ensureEffectiveFirstAndLastRows() const;
|
||||||
void ensureColumnAndRowData(QGridLayoutRowData *rowData, QGridLayoutBox *totalBox,
|
void ensureColumnAndRowData(QGridLayoutRowData *rowData, QGridLayoutBox *totalBox,
|
||||||
qreal *colPositions, qreal *colSizes,
|
const qreal *colPositions, const qreal *colSizes,
|
||||||
Qt::Orientation orientation,
|
Qt::Orientation orientation,
|
||||||
const QAbstractLayoutStyleInfo *styleInfo) const;
|
const QAbstractLayoutStyleInfo *styleInfo) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user