MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / setSelectable

Method setSelectable

3rdparty/qcustomplot/qcustomplot.cpp:11603–11617  ·  view source on GitHub ↗

! Sets whether and to which granularity this plottable can be selected. A selection can happen by clicking on the QCustomPlot surface (When \ref QCustomPlot::setInteractions contains \ref QCP::iSelectPlottables), by dragging a selection rect (When \ref QCustomPlot::setSelectionRectMode is \ref QCP::srmSelect), or programmatically by calling \ref setSelection. \see setSelection, QCP

Source from the content-addressed store, hash-verified

11601 \see setSelection, QCP::SelectionType
11602*/
11603void QCPAbstractPlottable::setSelectable(QCP::SelectionType selectable)
11604{
11605 if (mSelectable != selectable)
11606 {
11607 mSelectable = selectable;
11608 QCPDataSelection oldSelection = mSelection;
11609 mSelection.enforceType(mSelectable);
11610 emit selectableChanged(mSelectable);
11611 if (mSelection != oldSelection)
11612 {
11613 emit selectionChanged(selected());
11614 emit selectionChanged(mSelection);
11615 }
11616 }
11617}
11618
11619
11620/*!

Callers

nothing calls this directly

Calls 2

selectedFunction · 0.85
enforceTypeMethod · 0.80

Tested by

no test coverage detected