Changelog for 0.0.8
[harmattan/cameraplus] / declarative / flash.cpp
index d4a2894..2ce93c4 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 "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()));
 }