! 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
| 4292 | \see setColumnStretchFactors, setRowStretchFactor |
| 4293 | */ |
| 4294 | void 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. |
nothing calls this directly
no test coverage detected