Bind checked property to the corresponding setting value for CameraTextSwitch
[harmattan/cameraplus] / declarative / colortone.cpp
index 48301f3..54eda2e 100644 (file)
 #include "colortone.h"
 
 ColorTone::ColorTone(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_color(new QtCamColorTone(dev, this)) {
 
+  setCapability(m_color);
+
   QObject::connect(m_color, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
 }