-
-QString Settings::primaryImageAspectRatio() const {
- return m_settings->value("image/primaryAspectRatio",
- DEFAULT_PRIMARY_IMAGE_ASPECT_RATIO).toString();
-}
-
-void Settings::setPrimaryImageAspectRatio(const QString& aspectRatio) {
- if (primaryImageAspectRatio() != aspectRatio) {
- m_settings->setValue("image/primaryAspectRatio", aspectRatio);
- emit primaryImageAspectRatioChanged();
- }
-}
-
-QString Settings::primaryImageResolution() const {
- return m_settings->value("image/primaryResolution",
- DEFAULT_PRIMARY_IMAGE_RESOLUTION).toString();
-}
-
-void Settings::setPrimaryImageResolution(const QString& resolution) {
- if (primaryImageResolution() != resolution) {
- m_settings->setValue("image/primaryResolution", resolution);
- emit primaryImageResolutionChanged();
- }
-}
-
-QString Settings::primaryVideoAspectRatio() const {
- return m_settings->value("video/primaryAspectRatio",
- DEFAULT_PRIMARY_VIDEO_ASPECT_RATIO).toString();
-}
-
-void Settings::setPrimaryVideoAspectRatio(const QString& aspectRatio) {
- if (primaryVideoAspectRatio() != aspectRatio) {
- m_settings->setValue("video/primaryAspectRatio", aspectRatio);
- emit primaryVideoAspectRatioChanged();
- }
-}
-
-QString Settings::primaryVideoResolution() const {
- return m_settings->value("video/primaryResolution",
- DEFAULT_PRIMARY_VIDEO_RESOLUTION).toString();
-}
-
-void Settings::setPrimaryVideoResolution(const QString& resolution) {
- if (primaryVideoResolution() != resolution) {
- m_settings->setValue("video/primaryResolution", resolution);
- emit primaryVideoResolutionChanged();
- }
-}
-
-QString Settings::secondaryImageAspectRatio() const {
- return m_settings->value("image/secondaryAspectRatio",
- DEFAULT_SECONDARY_IMAGE_ASPECT_RATIO).toString();
-}
-
-void Settings::setSecondaryImageAspectRatio(const QString& aspectRatio) {
- if (secondaryImageAspectRatio() != aspectRatio) {
- m_settings->setValue("image/secondaryAspectRatio", aspectRatio);
- emit secondaryImageAspectRatioChanged();
- }
-}
-
-QString Settings::secondaryImageResolution() const {
- return m_settings->value("image/secondaryResolution",
- DEFAULT_SECONDARY_IMAGE_RESOLUTION).toString();
-}
-
-void Settings::setSecondaryImageResolution(const QString& resolution) {
- if (secondaryImageResolution() != resolution) {
- m_settings->setValue("image/secondaryResolution", resolution);
- emit secondaryImageResolutionChanged();
- }
-}
-
-QString Settings::secondaryVideoAspectRatio() const {
- return m_settings->value("video/secondaryAspectRatio",
- DEFAULT_SECONDARY_VIDEO_ASPECT_RATIO).toString();
-}
-
-void Settings::setSecondaryVideoAspectRatio(const QString& aspectRatio) {
- if (secondaryVideoAspectRatio() != aspectRatio) {
- m_settings->setValue("video/secondaryAspectRatio", aspectRatio);
- emit secondaryVideoAspectRatioChanged();
- }
-}
-
-QString Settings::secondaryVideoResolution() const {
- return m_settings->value("video/secondaryResolution",
- DEFAULT_SECONDARY_VIDEO_RESOLUTION).toString();
-}
-
-void Settings::setSecondaryVideoResolution(const QString& resolution) {
- if (secondaryVideoResolution() != resolution) {
- m_settings->setValue("video/secondaryResolution", resolution);
- emit secondaryVideoResolutionChanged();
- }
-}