MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / moveLegend

Method moveLegend

src/subprojects/AutoEqIntegration/AeqPreviewPlot.cpp:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void 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
232void AeqPreviewPlot::onLegendClick(QCPLegend *legend, QCPAbstractLegendItem *item, QMouseEvent *event)
233{

Callers

nothing calls this directly

Calls 3

axisRectFunction · 0.85
setInsetAlignmentMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected