! Returns the rect of the element with the specified \a index. The rect only has a meaning, if the inset placement (\ref setInsetPlacement) is \ref ipFree. */
| 4904 | meaning, if the inset placement (\ref setInsetPlacement) is \ref ipFree. |
| 4905 | */ |
| 4906 | QRectF QCPLayoutInset::insetRect(int index) const |
| 4907 | { |
| 4908 | if (elementAt(index)) |
| 4909 | return mInsetRect.at(index); |
| 4910 | else |
| 4911 | { |
| 4912 | qDebug() << Q_FUNC_INFO << "Invalid element index:" << index; |
| 4913 | return QRectF(); |
| 4914 | } |
| 4915 | } |
| 4916 | |
| 4917 | /*! |
| 4918 | Sets the inset placement type of the element with the specified \a index to \a placement. |