MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / selectLed

Method selectLed

qt/DeviceView.cpp:889–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887}
888
889bool DeviceView::selectLed(int target)
890{
891 if(target < 0 || size_t(target) >= controller->leds.size())
892 {
893 return false;
894 }
895
896 selectedLeds.resize(1);
897 selectedLeds[0] = target;
898 selectionFlags.clear();
899 selectionFlags.resize(controller->leds.size());
900 selectionFlags[target] = 1;
901
902 update();
903
904 /*-----------------------------------------------------*\
905 | Send selection changed signal |
906 \*-----------------------------------------------------*/
907 emit selectionChanged(selectedLeds);
908
909 return true;
910}
911
912bool DeviceView::selectLeds(QVector<int> target)
913{

Callers 1

Calls 2

updateFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected