Add count property to ImageResolutionModel and VideoResolutionModel
[harmattan/cameraplus] / declarative / imageresolutionmodel.cpp
index 2d9ad14..54f8043 100644 (file)
@@ -105,9 +105,14 @@ void ImageResolutionModel::setAspectRatio(const QString& aspectRatio) {
     endResetModel();
 
     emit aspectRatioChanged();
+    emit countChanged();
   }
 }
 
+int ImageResolutionModel::count() const {
+  return rowCount();
+}
+
 #if defined(QT5)
 QHash<int, QByteArray> ImageResolutionModel::roleNames() const {
   return m_roles;