MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / getMinimumRowColSizes

Method getMinimumRowColSizes

3rdparty/qcustomplot/qcustomplot.cpp:4799–4817  ·  view source on GitHub ↗

! \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

Source from the content-addressed store, hash-verified

4797 \see getMaximumRowColSizes
4798*/
4799void 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

Callers

nothing calls this directly

Calls 3

columnCountFunction · 0.85
rowCountFunction · 0.85
atMethod · 0.45

Tested by

no test coverage detected