Changelog for 0.0.8
[harmattan/cameraplus] / declarative / flash.cpp
index 9af7fbd..2ce93c4 100644 (file)
 #include "flash.h"
 
 Flash::Flash(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_flash(new QtCamFlash(dev, this)) {
 
+  setCapability(m_flash);
+
   QObject::connect(m_flash, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
   QObject::connect(m_flash, SIGNAL(flashReadyChanged()), this, SIGNAL(readyChanged()));
 }