Position ! called when label's current horizontal position relative to its parent (left, center, right, custom ) is changed. */
| 289 | called when label's current horizontal position relative to its parent (left, center, right, custom ) is changed. |
| 290 | */ |
| 291 | void ImageDock::positionXChanged(int index) { |
| 292 | CONDITIONAL_LOCK_RETURN; |
| 293 | |
| 294 | auto position = m_image->position(); |
| 295 | position.horizontalPosition = WorksheetElement::HorizontalPosition(index); |
| 296 | for (auto* image : m_imageList) |
| 297 | image->setPosition(position); |
| 298 | } |
| 299 | |
| 300 | /*! |
| 301 | called when label's current horizontal position relative to its parent (top, center, bottom, custom ) is changed. |
nothing calls this directly
no test coverage detected