X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fexposure.cpp;h=df820e42ddd425a4002d49bf669f088240a5052d;hp=1db239774e8fd7dc7bee5369a864ceb555de8c88;hb=84ebf0afd25ee836c1090ccd4502fe1049be2278;hpb=f8861ec5a342457760b9e767ac90e6524917ad87 diff --git a/declarative/exposure.cpp b/declarative/exposure.cpp index 1db2397..df820e4 100644 --- a/declarative/exposure.cpp +++ b/declarative/exposure.cpp @@ -1,7 +1,7 @@ /*! * This file is part of CameraPlus. * - * Copyright (C) 2012 Mohammed Sameer + * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -23,9 +23,11 @@ #include "qtcamexposure.h" Exposure::Exposure(QtCamDevice *dev, QObject *parent) : - QObject(parent), + Capability(parent), m_exposure(new QtCamExposure(dev, this)) { + setCapability(m_exposure); + QObject::connect(m_exposure, SIGNAL(valueChanged()), this, SIGNAL(valueChanged())); QObject::connect(m_exposure, SIGNAL(minimumValueChanged()), this, SIGNAL(minimumChanged())); QObject::connect(m_exposure, SIGNAL(maximumValueChanged()), this, SIGNAL(maximunmChanged()));