this, SIGNAL(canCaptureChanged()));
QObject::disconnect(m_cam->device(), SIGNAL(runningStateChanged(bool)),
this, SIGNAL(canCaptureChanged()));
- QObject::disconnect(m_mode, SIGNAL(nightModeChanged()), this, SIGNAL(nightModeChanged()));
preChangeMode();
}
this, SIGNAL(canCaptureChanged()));
QObject::connect(m_cam->device(), SIGNAL(runningStateChanged(bool)),
this, SIGNAL(canCaptureChanged()));
- QObject::connect(m_mode, SIGNAL(nightModeChanged()), this, SIGNAL(nightModeChanged()));
postChangeMode();
}
emit previewAvailable(url, fileName);
}
-void Mode::setNightMode(bool night) {
- if (m_mode) {
- m_mode->setNightMode(night);
- }
-}
-
-bool Mode::inNightMode() const {
- return m_mode ? m_mode->inNightMode() : false;
-}
-
bool Mode::isReady() const {
return m_mode;
}