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

Method setColumnStretchFactor

3rdparty/qcustomplot/qcustomplot.cpp:4241–4251  ·  view source on GitHub ↗

! Sets the stretch \a factor of \a column. 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

Source from the content-addressed store, hash-verified

4239 \see setColumnStretchFactors, setRowStretchFactor
4240*/
4241void QCPLayoutGrid::setColumnStretchFactor(int column, double factor)
4242{
4243 if (column >= 0 && column < columnCount())
4244 {
4245 if (factor > 0)
4246 mColumnStretchFactors[column] = factor;
4247 else
4248 qDebug() << Q_FUNC_INFO << "Invalid stretch factor, must be positive:" << factor;
4249 } else
4250 qDebug() << Q_FUNC_INFO << "Invalid column:" << column;
4251}
4252
4253/*!
4254 Sets the stretch \a factors of all columns. \a factors must have the size \ref columnCount.

Callers

nothing calls this directly

Calls 1

columnCountFunction · 0.85

Tested by

no test coverage detected