MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / setInteraction

Method setInteraction

qcustomplot.cpp:13140–13146  ·  view source on GitHub ↗

! Sets the single \a interaction of this QCustomPlot to \a enabled. For details about the interaction system, see \ref setInteractions. \see setInteractions */

Source from the content-addressed store, hash-verified

13138 \see setInteractions
13139*/
13140void QCustomPlot::setInteraction(const QCP::Interaction &interaction, bool enabled)
13141{
13142 if (!enabled && mInteractions.testFlag(interaction))
13143 mInteractions &= ~interaction;
13144 else if (enabled && !mInteractions.testFlag(interaction))
13145 mInteractions |= interaction;
13146}
13147
13148/*!
13149 Sets the tolerance that is used to decide whether a click selects an object (e.g. a plottable) or

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected