equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
180 QVarLengthArray<QGridLayoutBox> extras(span); |
180 QVarLengthArray<QGridLayoutBox> extras(span); |
181 QVarLengthArray<qreal> dummy(span); |
181 QVarLengthArray<qreal> dummy(span); |
182 QVarLengthArray<qreal> newSizes(span); |
182 QVarLengthArray<qreal> newSizes(span); |
183 |
183 |
184 for (int j = 0; j < NSizes; ++j) { |
184 for (int j = 0; j < NSizes; ++j) { |
185 qreal extra = compare(totalBox, box, j); |
185 qreal extra = compare(box, totalBox, j); |
186 if (extra > 0.0) { |
186 if (extra > 0.0) { |
187 calculateGeometries(start, end, totalBox.q_sizes(j), dummy.data(), newSizes.data(), |
187 calculateGeometries(start, end, box.q_sizes(j), dummy.data(), newSizes.data(), |
188 0, totalBox); |
188 0, totalBox); |
189 |
189 |
190 for (int k = 0; k < span; ++k) |
190 for (int k = 0; k < span; ++k) |
191 extras[k].q_sizes(j) = newSizes[k]; |
191 extras[k].q_sizes(j) = newSizes[k]; |
192 } |
192 } |