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

Method selectedParts

qcustomplot/qcustomplot.cpp:18361–18377  ·  view source on GitHub ↗

no doc for getter, see setSelectedParts */

Source from the content-addressed store, hash-verified

18359
18360/* no doc for getter, see setSelectedParts */
18361QCPLegend::SelectableParts QCPLegend::selectedParts() const
18362{
18363 // check whether any legend elements selected, if yes, add spItems to return value
18364 bool hasSelectedItems = false;
18365 for (int i=0; i<itemCount(); ++i)
18366 {
18367 if (item(i) && item(i)->selected())
18368 {
18369 hasSelectedItems = true;
18370 break;
18371 }
18372 }
18373 if (hasSelectedItems)
18374 return mSelectedParts | spItems;
18375 else
18376 return mSelectedParts & ~spItems;
18377}
18378
18379/*!
18380 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