X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fimageresolutionmodel.cpp;h=54f804355f905ce12ee714688078e18d6cc5b171;hp=2d9ad140d9a01f449b13deec825441a4a4bd0337;hb=8b446fd852f3427efd37c5104207dafea1089934;hpb=cab75c8b7fed03ccc0b073b51b37fa43ba085693 diff --git a/declarative/imageresolutionmodel.cpp b/declarative/imageresolutionmodel.cpp index 2d9ad14..54f8043 100644 --- a/declarative/imageresolutionmodel.cpp +++ b/declarative/imageresolutionmodel.cpp @@ -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 ImageResolutionModel::roleNames() const { return m_roles;