MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setRowStretchFactor

Method setRowStretchFactor

3rdparty/qcustomplot/qcustomplot.cpp:4294–4304  ·  view source on GitHub ↗

! Sets the stretch \a factor of \a row. Stretch factors control the relative sizes of rows and columns. Cells will not be resized beyond their minimum and maximum widths/heights, regardless of the stretch factor. (see \ref QCPLayoutElement::setMinimumSize, \ref QCPLayoutElement::setMaximumSize, \ref QCPLayoutElement::setSizeConstraintRect.) The default stretch factor of newly cre

Source from the content-addressed store, hash-verified

4292 \see setColumnStretchFactors, setRowStretchFactor
4293*/
4294void QCPLayoutGrid::setRowStretchFactor(int row, double factor)
4295{
4296 if (row >= 0 && row < rowCount())
4297 {
4298 if (factor > 0)
4299 mRowStretchFactors[row] = factor;
4300 else
4301 qDebug() << Q_FUNC_INFO << "Invalid stretch factor, must be positive:" << factor;
4302 } else
4303 qDebug() << Q_FUNC_INFO << "Invalid row:" << row;
4304}
4305
4306/*!
4307 Sets the stretch \a factors of all rows. \a factors must have the size \ref rowCount.

Callers

nothing calls this directly

Calls 1

rowCountFunction · 0.85

Tested by

no test coverage detected