Bind checked property to the corresponding setting value for CameraTextSwitch
[harmattan/cameraplus] / declarative / evcomp.cpp
index ed91ec7..dfed9cf 100644 (file)
@@ -1,7 +1,7 @@
 /*!
  * This file is part of CameraPlus.
  *
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #include "qtcamevcomp.h"
 
 EvComp::EvComp(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_evComp(new QtCamEvComp(dev, this)) {
 
+  setCapability(m_evComp);
+
   QObject::connect(m_evComp, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
   QObject::connect(m_evComp, SIGNAL(minimumValueChanged()), this, SIGNAL(minimumChanged()));
   QObject::connect(m_evComp, SIGNAL(maximumValueChanged()), this, SIGNAL(maximunmChanged()));