X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fzoom.cpp;h=2d05ba6653a5650be84327262ab8659f5ff1b7f8;hp=879bbfa858f8ea5129fc1d37bbabbeea74adf63b;hb=2eeae95683eaa235b9f6717c400d69ef47326cf0;hpb=3423bd2565dc32f1a8910a99e1d26a6e977a3f63 diff --git a/declarative/zoom.cpp b/declarative/zoom.cpp index 879bbfa..2d05ba6 100644 --- a/declarative/zoom.cpp +++ b/declarative/zoom.cpp @@ -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()));