X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fzoom.cpp;h=2d05ba6653a5650be84327262ab8659f5ff1b7f8;hp=da87ef0931b1fc8036eac0146cb9ac793841a732;hb=2eeae95683eaa235b9f6717c400d69ef47326cf0;hpb=f8861ec5a342457760b9e767ac90e6524917ad87 diff --git a/declarative/zoom.cpp b/declarative/zoom.cpp index da87ef0..2d05ba6 100644 --- a/declarative/zoom.cpp +++ b/declarative/zoom.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 @@ -22,9 +22,11 @@ #include "qtcamzoom.h" Zoom::Zoom(QtCamDevice *dev, QObject *parent) : - QObject(parent), + Capability(parent), m_zoom(new QtCamZoom(dev, this)) { + setCapability(m_zoom); + QObject::connect(m_zoom, SIGNAL(valueChanged()), this, SIGNAL(valueChanged())); QObject::connect(m_zoom, SIGNAL(minimumValueChanged()), this, SIGNAL(minimumChanged())); QObject::connect(m_zoom, SIGNAL(maximumValueChanged()), this, SIGNAL(maximunmChanged()));