projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
187b762
)
Emit aspectRatioChanged() after we populate the model with new resolutions.
author
Mohammed Sameer
<msameer@foolab.org>
Thu, 14 Feb 2013 00:19:38 +0000
(
02:19
+0200)
committer
Mohammed Sameer
<msameer@foolab.org>
Thu, 14 Feb 2013 00:19:38 +0000
(
02:19
+0200)
This allows us to avoid creating all buttons then recreating them
after setting aspect ratio upon the construction of settings dialog
declarative/imageresolutionmodel.cpp
patch
|
blob
|
history
diff --git
a/declarative/imageresolutionmodel.cpp
b/declarative/imageresolutionmodel.cpp
index
4ba775e
..
d0e0b19
100644
(file)
--- a/
declarative/imageresolutionmodel.cpp
+++ b/
declarative/imageresolutionmodel.cpp
@@
-98,12
+98,12
@@
void ImageResolutionModel::setAspectRatio(const QString& aspectRatio) {
m_aspectRatio = aspectRatio;
- emit aspectRatioChanged();
-
beginResetModel();
m_resolutions = m_settings->resolutions(m_aspectRatio);
endResetModel();
+
+ emit aspectRatioChanged();
}
}