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
/
imageresolutionmodel.cpp
diff --git
a/declarative/imageresolutionmodel.cpp
b/declarative/imageresolutionmodel.cpp
index
2d9ad14
..
54f8043
100644
(file)
--- 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<int, QByteArray> ImageResolutionModel::roleNames() const {
return m_roles;