MCPcopy Create free account
hub / github.com/LUX-Core/lux / selectedParts

Method selectedParts

src/qt/qcustomplot.cpp:18322–18338  ·  view source on GitHub ↗

no doc for getter, see setSelectedParts */

Source from the content-addressed store, hash-verified

18320
18321/* no doc for getter, see setSelectedParts */
18322QCPLegend::SelectableParts QCPLegend::selectedParts() const
18323{
18324 // check whether any legend elements selected, if yes, add spItems to return value
18325 bool hasSelectedItems = false;
18326 for (int i=0; i<itemCount(); ++i)
18327 {
18328 if (item(i) && item(i)->selected())
18329 {
18330 hasSelectedItems = true;
18331 break;
18332 }
18333 }
18334 if (hasSelectedItems)
18335 return mSelectedParts | spItems;
18336 else
18337 return mSelectedParts & ~spItems;
18338}
18339
18340/*!
18341 Sets the pen, the border of the entire legend is drawn with.

Callers 3

setSelectedPartsMethod · 0.95
Q_FOREACHFunction · 0.80
selectedLegendsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected