X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fvideoresolutionmodel.cpp;h=1cd09816954da261242bea4074ee618843585ce8;hp=9741bb2680b1ba705d4cdd4b04a9e057ad49a8c9;hb=8b446fd852f3427efd37c5104207dafea1089934;hpb=cab75c8b7fed03ccc0b073b51b37fa43ba085693;ds=sidebyside diff --git a/declarative/videoresolutionmodel.cpp b/declarative/videoresolutionmodel.cpp index 9741bb2..1cd0981 100644 --- a/declarative/videoresolutionmodel.cpp +++ b/declarative/videoresolutionmodel.cpp @@ -98,16 +98,21 @@ void VideoResolutionModel::setAspectRatio(const QString& aspectRatio) { m_aspectRatio = aspectRatio; - emit aspectRatioChanged(); - beginResetModel(); m_resolutions = m_settings->resolutions(m_aspectRatio); endResetModel(); + + emit aspectRatioChanged(); + emit countChanged(); } } +int VideoResolutionModel::count() const { + return rowCount(); +} + #if defined(QT5) QHash VideoResolutionModel::roleNames() const { return m_roles;