projects
/
harmattan
/
cameraplus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add count property to ImageResolutionModel and VideoResolutionModel
[harmattan/cameraplus]
/
declarative
/
videoresolutionmodel.cpp
diff --git
a/declarative/videoresolutionmodel.cpp
b/declarative/videoresolutionmodel.cpp
index
9741bb2
..
1cd0981
100644
(file)
--- a/
declarative/videoresolutionmodel.cpp
+++ b/
declarative/videoresolutionmodel.cpp
@@
-98,16
+98,21
@@
void VideoResolutionModel::setAspectRatio(const QString& aspectRatio) {
m_aspectRatio = aspectRatio;
m_aspectRatio = aspectRatio;
- emit aspectRatioChanged();
-
beginResetModel();
m_resolutions = m_settings->resolutions(m_aspectRatio);
endResetModel();
beginResetModel();
m_resolutions = m_settings->resolutions(m_aspectRatio);
endResetModel();
+
+ emit aspectRatioChanged();
+ emit countChanged();
}
}
}
}
+int VideoResolutionModel::count() const {
+ return rowCount();
+}
+
#if defined(QT5)
QHash<int, QByteArray> VideoResolutionModel::roleNames() const {
return m_roles;
#if defined(QT5)
QHash<int, QByteArray> VideoResolutionModel::roleNames() const {
return m_roles;