]> git.sesse.net Git - kdenlive/blobdiff - src/doubleparameterwidget.h
Const'ref
[kdenlive] / src / doubleparameterwidget.h
index a3262ae1998b8526e4f79a255974de83e73a6fda..7dec64656eeba0b7bc4d76a103015f74a205b628 100644 (file)
@@ -25,8 +25,6 @@
 
 
 class QLabel;
-class QSlider;
-class QSpinBox;
 class DragValue;
 
 /**
@@ -50,7 +48,8 @@ public:
     * @param comment A comment explaining the parameter. Will be shown for the tooltip.
     * @param suffix (optional) Suffix to display in spinbox
     * @param parent (optional) Parent Widget */
-    DoubleParameterWidget(const QString &name, double value, double min, double max, double defaultValue, const QString &comment, int id, const QString suffix = QString(), int decimals = 0, QWidget* parent = 0);
+    explicit DoubleParameterWidget(const QString &name, double value, double min, double max, double defaultValue, const QString &comment, int id, const QString &suffix = QString(), int decimals = 0, QWidget* parent = 0);
+    ~DoubleParameterWidget();
 
     /** @brief Gets the parameter's value. */
     double getValue();
@@ -59,6 +58,7 @@ public:
     /** @brief Returns minimum size for QSpinBox, used to set all spinboxes to the same width. */
     int spinSize();
     void setSpinSize(int width);
+    
 
 public slots:
     /** @brief Sets the value to @param value. */
@@ -74,9 +74,6 @@ private slots:
     void slotSetValue(double value, bool final);
 
 private:
-    QLabel *m_name;
-    QSlider *m_slider;
-    QSpinBox *m_spinBox;
     DragValue *m_dragVal;
     QLabel *m_commentLabel;