void DlgRuleEditorFilterCapabilityPage::update(Subject *subject) { if (subject == filterPolicy_) { /* This is not our policy! */ showCapability(); } }
void CameraAttr::changeDevice(int index) { struct v4l2_capability vcap; if (index == -1) return; if (camera != NULL) { delete camera; } QString dev("/dev/"+ devList.at(index)); camera = new Camera(dev.toLocal8Bit().constData()); if (!camera->open()) return; camera->getCapabilities(&vcap); showCapability(&vcap); camera->enumerateImageFormats(&mvecFmt); for (unsigned int i = 0; i < mvecFmt.size(); i++) { cmbPixelFormat->addItem((char *)mvecFmt[i].description); } changePixelFormat(0); }