Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WebappSim::setLed (int cpuid, ApolloLEDs which, LEDstates state, LEDcolors color)
- {
- QMap <int, QMap <int, QApolloPushButton*> >::iterator it1;
- if ((it1 = m_apolloPushButtons.find (cpuid)) != m_apolloPushButtons.end())
- {
- QMap <int, QApolloPushButton*>::iterator it2;
- if ((it2 = it1->find (which)) != it1->end())
- {
- (*it2)->setLedState (state);
- (*it2)->setLedColor (color);
- (*it2)->update();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment