#define DEFAULT_GRID_ENABLED false
#define DEFAULT_FACE_DETECTION_ENABLED true
#define DEFAULT_ZOOM_AS_SHUTTER false
+#define DEFAULT_PROXIMITY_AS_SHUTTER false
#define DEFAULT_DEVICE 0
Settings::Settings(QObject *parent) :
}
}
+bool Settings::isProximityAsShutterEnabled() const {
+ return m_settings->value("camera/proximityAsShutter", DEFAULT_PROXIMITY_AS_SHUTTER).toBool();
+}
+
+void Settings::setProximityAsShutterEnabled(bool enabled) {
+ if (isProximityAsShutterEnabled() != enabled) {
+ m_settings->setValue("camera/proximityAsShutter", enabled);
+
+ emit proximityAsShutterChanged();
+ }
+}
+
int Settings::device() const {
return m_settings->value("camera/device", DEFAULT_DEVICE).toInt();
}