projects
/
harmattan
/
cameraplus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce a base class for capabilities.
[harmattan/cameraplus]
/
declarative
/
whitebalance.cpp
diff --git
a/declarative/whitebalance.cpp
b/declarative/whitebalance.cpp
index
bc6ed5a
..
3957274
100644
(file)
--- a/
declarative/whitebalance.cpp
+++ b/
declarative/whitebalance.cpp
@@
-21,9
+21,11
@@
#include "whitebalance.h"
WhiteBalance::WhiteBalance(QtCamDevice *dev, QObject *parent) :
#include "whitebalance.h"
WhiteBalance::WhiteBalance(QtCamDevice *dev, QObject *parent) :
-
QObject
(parent),
+
Capability
(parent),
m_wb(new QtCamWhiteBalance(dev, this)) {
m_wb(new QtCamWhiteBalance(dev, this)) {
+ setCapability(m_wb);
+
QObject::connect(m_wb, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
}
QObject::connect(m_wb, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
}