Unset QtCamdevice viewfinder when Viewfinder is being destructed.
[harmattan/cameraplus] / declarative / whitebalance.cpp
index 2951bbe..3957274 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 "whitebalance.h"
 
 WhiteBalance::WhiteBalance(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_wb(new QtCamWhiteBalance(dev, this)) {
 
+  setCapability(m_wb);
+
   QObject::connect(m_wb, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
 }