~QtCamImageModePrivate() {
}
- bool wrapperIsReady() {
- if (!dev->wrapperVideoSource) {
- return false;
- }
-
- gboolean ready = FALSE;
- g_object_get(dev->wrapperVideoSource, "ready-for-capture", &ready, NULL);
-
- return ready == TRUE;
- }
-
QtCamImageSettings settings;
};
}
bool QtCamImageMode::canCapture() {
- return QtCamMode::canCapture() && d_ptr->wrapperIsReady();
+ return QtCamMode::canCapture() && d_ptr->dev->isWrapperReady();
}
void QtCamImageMode::applySettings() {