projects
/
harmattan
/
cameraplus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added aspectRatioCount to ImageSettings and VideoSettings
[harmattan/cameraplus]
/
declarative
/
videosettings.cpp
diff --git
a/declarative/videosettings.cpp
b/declarative/videosettings.cpp
index
2fa6957
..
b2b6e8f
100644
(file)
--- a/
declarative/videosettings.cpp
+++ b/
declarative/videosettings.cpp
@@
-79,6
+79,7
@@
void VideoSettings::deviceChanged() {
delete m_resolutions;
m_resolutions = 0;
+ emit aspectRatioCountChanged();
emit resolutionsChanged();
}
@@
-114,3
+115,7
@@
bool VideoSettings::setResolution(const QString& aspectRatio, const QString& res
return false;
}
+
+int VideoSettings::aspectRatioCount() const {
+ return aspectRatios().count();
+}