Added aspectRatioCount to ImageSettings and VideoSettings
[harmattan/cameraplus] / declarative / videosettings.cpp
index 2fa6957..b2b6e8f 100644 (file)
@@ -79,6 +79,7 @@ void VideoSettings::deviceChanged() {
   delete m_resolutions;
   m_resolutions = 0;
 
+  emit aspectRatioCountChanged();
   emit resolutionsChanged();
 }
 
@@ -114,3 +115,7 @@ bool VideoSettings::setResolution(const QString& aspectRatio, const QString& res
 
   return false;
 }
+
+int VideoSettings::aspectRatioCount() const {
+  return aspectRatios().count();
+}