MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setSelection

Method setSelection

qcustomplot/qcustomplot.cpp:10840–10849  ·  view source on GitHub ↗

! Sets which data ranges of this plottable are selected. Selected data ranges are drawn differently (e.g. color) in the plot. This can be controlled via the selection decorator (see \ref selectionDecorator). The entire selection mechanism for plottables is handled automatically when \ref QCustomPlot::setInteractions contains iSelectPlottables. You only need to call this function when

Source from the content-addressed store, hash-verified

10838 \see setSelectable, selectTest
10839*/
10840void QCPAbstractPlottable::setSelection(QCPDataSelection selection)
10841{
10842 selection.enforceType(mSelectable);
10843 if (mSelection != selection)
10844 {
10845 mSelection = selection;
10846 emit selectionChanged(selected());
10847 emit selectionChanged(mSelection);
10848 }
10849}
10850
10851/*!
10852 Use this method to set an own QCPSelectionDecorator (subclass) instance. This allows you to

Callers

nothing calls this directly

Calls 2

selectedFunction · 0.85
enforceTypeMethod · 0.80

Tested by

no test coverage detected