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

Method selectedParts

3rdparty/qcustomplot/qcustomplot.cpp:19108–19124  ·  view source on GitHub ↗

no doc for getter, see setSelectedParts */

Source from the content-addressed store, hash-verified

19106
19107/* no doc for getter, see setSelectedParts */
19108QCPLegend::SelectableParts QCPLegend::selectedParts() const
19109{
19110 // check whether any legend elements selected, if yes, add spItems to return value
19111 bool hasSelectedItems = false;
19112 for (int i=0; i<itemCount(); ++i)
19113 {
19114 if (item(i) && item(i)->selected())
19115 {
19116 hasSelectedItems = true;
19117 break;
19118 }
19119 }
19120 if (hasSelectedItems)
19121 return mSelectedParts | spItems;
19122 else
19123 return mSelectedParts & ~spItems;
19124}
19125
19126/*!
19127 Sets the pen, the border of the entire legend is drawn with.

Callers 3

setSelectedPartsMethod · 0.95
foreachFunction · 0.80
selectedLegendsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected