SLOTs for changes triggered in CustomPointDock "General"-tab ! called when label's current horizontal position relative to its parent (left, center, right ) is changed. */
| 144 | called when label's current horizontal position relative to its parent (left, center, right ) is changed. |
| 145 | */ |
| 146 | void CustomPointDock::positionXChanged(int index) { |
| 147 | CONDITIONAL_LOCK_RETURN; |
| 148 | |
| 149 | auto horPos = WorksheetElement::HorizontalPosition(index); |
| 150 | for (auto* point : m_points) { |
| 151 | auto position = point->position(); |
| 152 | position.horizontalPosition = horPos; |
| 153 | point->setPosition(position); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | /*! |
| 158 | called when label's current horizontal position relative to its parent (top, center, bottom) is changed. |
nothing calls this directly
no test coverage detected