]> git.sesse.net Git - kdenlive/blobdiff - src/doubleparameterwidget.cpp
Allow retrieval of metadata created by Magic Lantern for canon cams
[kdenlive] / src / doubleparameterwidget.cpp
index be8cbb590d8e19661687c93c6de655067e3f5d0a..9aa55e9b2495a3804a9cc9a8ae4ee6fe6268156e 100644 (file)
@@ -53,11 +53,17 @@ DoubleParameterWidget::DoubleParameterWidget(const QString &name, double value,
         m_commentLabel->setHidden(true);
         layout->addWidget(m_commentLabel, 1, 0, 1, -1);
     }
-    m_dragVal->setValue(value);
+    m_dragVal->setValue(value, false);
     connect(m_dragVal, SIGNAL(valueChanged(double, bool)), this, SLOT(slotSetValue(double, bool)));
     connect(m_dragVal, SIGNAL(inTimeline(int)), this, SIGNAL(setInTimeline(int)));
 }
 
+DoubleParameterWidget::~DoubleParameterWidget()
+{
+    delete m_dragVal;
+    if (m_commentLabel) delete m_commentLabel;
+}
+
 int DoubleParameterWidget::spinSize()
 {
     return m_dragVal->spinSize();
@@ -77,7 +83,6 @@ void DoubleParameterWidget::setValue(double value)
 
 void DoubleParameterWidget::slotSetValue(double value, bool final)
 {
-    kDebug()<<"VALUE CHANGED: "<<value;
     if (final) {
         emit valueChanged(value);
     }