MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setRowStretchFactor

Method setRowStretchFactor

qcustomplot/qcustomplot.cpp:4269–4279  ·  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

4267 \see setColumnStretchFactors, setRowStretchFactor
4268*/
4269void QCPLayoutGrid::setRowStretchFactor(int row, double factor)
4270{
4271 if (row >= 0 && row < rowCount())
4272 {
4273 if (factor > 0)
4274 mRowStretchFactors[row] = factor;
4275 else
4276 qDebug() << Q_FUNC_INFO << "Invalid stretch factor, must be positive:" << factor;
4277 } else
4278 qDebug() << Q_FUNC_INFO << "Invalid row:" << row;
4279}
4280
4281/*!
4282 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