! Returns the alignment of the element with the specified \a index. The alignment only has a meaning, if the inset placement (\ref setInsetPlacement) is \ref ipBorderAligned. */
| 4914 | meaning, if the inset placement (\ref setInsetPlacement) is \ref ipBorderAligned. |
| 4915 | */ |
| 4916 | Qt::Alignment QCPLayoutInset::insetAlignment(int index) const |
| 4917 | { |
| 4918 | if (elementAt(index)) |
| 4919 | return mInsetAlignment.at(index); |
| 4920 | else |
| 4921 | { |
| 4922 | qDebug() << Q_FUNC_INFO << "Invalid element index:" << index; |
| 4923 | #if QT_VERSION < QT_VERSION_CHECK(5, 2, 0) |
| 4924 | return nullptr; |
| 4925 | #else |
| 4926 | return {}; |
| 4927 | #endif |
| 4928 | } |
| 4929 | } |
| 4930 | |
| 4931 | /*! |
| 4932 | Returns the rect of the element with the specified \a index. The rect only has a |