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

Method on_ButtonSetAll_clicked

qt/OpenRGBDialog/OpenRGBDialog.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void Ui::OpenRGBDialog::on_ButtonSetAll_clicked()
118{
119 RGBColor color = ToRGBColor(
120 ui->EditLED0R->text().toInt(),
121 ui->EditLED0G->text().toInt(),
122 ui->EditLED0B->text().toInt()
123 );
124
125 for (std::size_t i = 0; i < controllers.size(); i++)
126 {
127 controllers[i]->SetCustomMode();
128 controllers[i]->SetAllLEDs(color);
129 }
130}
131
132void Ui::OpenRGBDialog::on_ButtonSetDevice_clicked()
133{

Callers

nothing calls this directly

Calls 3

SetAllLEDsMethod · 0.80
sizeMethod · 0.45
SetCustomModeMethod · 0.45

Tested by

no test coverage detected