! \internal Places the minimum column widths and row heights into \a minColWidths and \a minRowHeights respectively. The minimum height of a row is the largest minimum height of any element's outer rect in that row. The minimum width of a column is the largest minimum width of any element's outer rect in that column. This is a helper function for \ref updateLayout. \see g
| 4797 | \see getMaximumRowColSizes |
| 4798 | */ |
| 4799 | void QCPLayoutGrid::getMinimumRowColSizes(QVector<int> *minColWidths, QVector<int> *minRowHeights) const |
| 4800 | { |
| 4801 | *minColWidths = QVector<int>(columnCount(), 0); |
| 4802 | *minRowHeights = QVector<int>(rowCount(), 0); |
| 4803 | for (int row=0; row<rowCount(); ++row) |
| 4804 | { |
| 4805 | for (int col=0; col<columnCount(); ++col) |
| 4806 | { |
| 4807 | if (QCPLayoutElement *el = mElements.at(row).at(col)) |
| 4808 | { |
| 4809 | QSize minSize = getFinalMinimumOuterSize(el); |
| 4810 | if (minColWidths->at(col) < minSize.width()) |
| 4811 | (*minColWidths)[col] = minSize.width(); |
| 4812 | if (minRowHeights->at(row) < minSize.height()) |
| 4813 | (*minRowHeights)[row] = minSize.height(); |
| 4814 | } |
| 4815 | } |
| 4816 | } |
| 4817 | } |
| 4818 | |
| 4819 | /*! \internal |
| 4820 |
nothing calls this directly
no test coverage detected