projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a699e98
)
Use qFuzzyCompare() for evComp settings
author
Mohammed Sameer
<msameer@foolab.org>
Wed, 19 Dec 2012 21:27:53 +0000
(23:27 +0200)
committer
Mohammed Sameer
<msameer@foolab.org>
Wed, 19 Dec 2012 21:27:53 +0000
(23:27 +0200)
src/settings.cpp
patch
|
blob
|
history
diff --git
a/src/settings.cpp
b/src/settings.cpp
index
ac114ab
..
2cf7b03
100644
(file)
--- a/
src/settings.cpp
+++ b/
src/settings.cpp
@@
-151,7
+151,7
@@
qreal Settings::imageEvComp() const {
}
void Settings::setImageEvComp(qreal ev) {
- if (
ev != imageEvComp(
)) {
+ if (
!qFuzzyCompare(ev, imageEvComp()
)) {
m_settings->setValue("image/evComp", ev);
emit imageEvCompChanged();
@@
-199,7
+199,7
@@
qreal Settings::videoEvComp() const {
}
void Settings::setVideoEvComp(qreal ev) {
- if (
ev != videoEvComp(
)) {
+ if (
!qFuzzyCompare(ev, videoEvComp()
)) {
m_settings->setValue("video/evComp", ev);
emit videoEvCompChanged();