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