! If the inset placement (\ref setInsetPlacement) is \ref ipFree, this function is used to set the position and size of the element with the specified \a index to \a rect. \a rect is given in fractions of the whole inset layout rect. So an inset with rect (0, 0, 1, 1) will span the entire layout. An inset with rect (0.6, 0.1, 0.35, 0.35) will be in the top right corner of the layout,
| 4955 | QCPLayoutElement::setMinimumSize, \ref QCPLayoutElement::setMaximumSize) are enforced. |
| 4956 | */ |
| 4957 | void QCPLayoutInset::setInsetRect(int index, const QRectF &rect) |
| 4958 | { |
| 4959 | if (elementAt(index)) |
| 4960 | mInsetRect[index] = rect; |
| 4961 | else |
| 4962 | qDebug() << Q_FUNC_INFO << "Invalid element index:" << index; |
| 4963 | } |
| 4964 | |
| 4965 | /* inherits documentation from base class */ |
| 4966 | void QCPLayoutInset::updateLayout() |
nothing calls this directly
no outgoing calls
no test coverage detected