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