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

Method ShowDeviceView

qt/OpenRGBDevicePage/OpenRGBDevicePage.cpp:1540–1553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1538}
1539
1540void Ui::OpenRGBDevicePage::ShowDeviceView()
1541{
1542 /*-----------------------------------------------------*\
1543 | Read selected mode |
1544 \*-----------------------------------------------------*/
1545 unsigned int selected_mode = (unsigned int)ui->ModeBox->currentIndex();
1546
1547 DeviceViewShowing = true;
1548
1549 if(device->modes[selected_mode].flags & MODE_FLAG_HAS_PER_LED_COLOR && device->leds.size() >= 1)
1550 {
1551 ui->DeviceViewBoxFrame->show();
1552 }
1553}
1554
1555void Ui::OpenRGBDevicePage::HideDeviceView()
1556{

Callers 1

Calls 2

sizeMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected