constify some functions to improve readability

Change-Id: I4a5e68367f281f743a631272f57a848dc2833d12
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
This commit is contained in:
Jan Arve Saether 2014-01-15 15:26:42 +01:00 committed by The Qt Project
parent 2ee59c20ae
commit 022f0a020a
2 changed files with 4 additions and 4 deletions

View File

@ -1291,7 +1291,7 @@ void QGridLayoutEngine::insertOrRemoveRows(int row, int delta, Qt::Orientation o
}
void QGridLayoutEngine::fillRowData(QGridLayoutRowData *rowData,
qreal *colPositions, qreal *colSizes,
const qreal *colPositions, const qreal *colSizes,
Qt::Orientation orientation,
const QAbstractLayoutStyleInfo *styleInfo) const
{
@ -1545,7 +1545,7 @@ void QGridLayoutEngine::ensureEffectiveFirstAndLastRows() const
}
void QGridLayoutEngine::ensureColumnAndRowData(QGridLayoutRowData *rowData, QGridLayoutBox *totalBox,
qreal *colPositions, qreal *colSizes,
const qreal *colPositions, const qreal *colSizes,
Qt::Orientation orientation,
const QAbstractLayoutStyleInfo *styleInfo) const
{

View File

@ -425,12 +425,12 @@ private:
void setItemAt(int row, int column, QGridLayoutItem *item);
void insertOrRemoveRows(int row, int delta, Qt::Orientation orientation = Qt::Vertical);
void fillRowData(QGridLayoutRowData *rowData,
qreal *colPositions, qreal *colSizes,
const qreal *colPositions, const qreal *colSizes,
Qt::Orientation orientation,
const QAbstractLayoutStyleInfo *styleInfo) const;
void ensureEffectiveFirstAndLastRows() const;
void ensureColumnAndRowData(QGridLayoutRowData *rowData, QGridLayoutBox *totalBox,
qreal *colPositions, qreal *colSizes,
const qreal *colPositions, const qreal *colSizes,
Qt::Orientation orientation,
const QAbstractLayoutStyleInfo *styleInfo) const;