MCPcopy Create free account
hub / github.com/Atarity/Lightpack / startBacklight

Method startBacklight

Software/src/SettingsWindow.cpp:633–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633void SettingsWindow::startBacklight()
634{
635 DEBUG_LOW_LEVEL << Q_FUNC_INFO << "m_backlightStatus =" << m_backlightStatus
636 << "m_deviceLockStatus =" << m_deviceLockStatus;
637
638 if(ui->list_Plugins->count()>0)
639 {
640 int count = ui->list_Plugins->count();
641 for(int index = 0; index < count; index++)
642 {
643 DEBUG_LOW_LEVEL << Q_FUNC_INFO << "check session key";
644 QListWidgetItem * item = ui->list_Plugins->item(index);
645 int indexPlugin =item->data(Qt::UserRole).toUInt();
646 QString key = _plugins[indexPlugin]->Guid();
647 if (m_deviceLockKey.contains(key))
648 {
649 if (m_deviceLockStatus != DeviceLocked::Api && m_deviceLockKey.indexOf(key)==0)
650 m_deviceLockModule = _plugins[indexPlugin]->Name();
651 if (Settings::isExpertModeEnabled())
652 item->setText(getPluginName(_plugins[indexPlugin])+" (Lock)");
653 }
654 else
655 item->setText(getPluginName(_plugins[indexPlugin]));
656 }
657 }
658
659
660 if (m_deviceLockKey.count()==0)
661 m_deviceLockModule = "";
662
663 updateTrayAndActionStates();
664}
665
666void SettingsWindow::nextProfile()
667{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
GuidMethod · 0.80
NameMethod · 0.80

Tested by

no test coverage detected