| 216 | } |
| 217 | |
| 218 | void AeqPreviewPlot::moveLegend() |
| 219 | { |
| 220 | if (QAction* contextAction = qobject_cast<QAction*>(sender())) |
| 221 | { |
| 222 | bool ok; |
| 223 | int dataInt = contextAction->data().toInt(&ok); |
| 224 | if (ok) |
| 225 | { |
| 226 | axisRect()->insetLayout()->setInsetAlignment(0, (Qt::Alignment)dataInt); |
| 227 | replot(); |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | void AeqPreviewPlot::onLegendClick(QCPLegend *legend, QCPAbstractLegendItem *item, QMouseEvent *event) |
| 233 | { |
nothing calls this directly
no test coverage detected