X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fdoubleparameterwidget.h;h=a3262ae1998b8526e4f79a255974de83e73a6fda;hb=36e64bf3662dfdb7c4ded42bd2b218f707ffa4ac;hp=52bad2101c8c47d9bdc266f143de892c02a8bfbb;hpb=fd25ecec11f82dd7024ebfd8c39a90c71ca6b06d;p=kdenlive diff --git a/src/doubleparameterwidget.h b/src/doubleparameterwidget.h index 52bad210..a3262ae1 100644 --- a/src/doubleparameterwidget.h +++ b/src/doubleparameterwidget.h @@ -53,7 +53,7 @@ public: 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); /** @brief Gets the parameter's value. */ - int getValue(); + double getValue(); /** @brief Set the inTimeline property to paint widget with other colors. */ void setInTimelineProperty(bool intimeline); /** @brief Returns minimum size for QSpinBox, used to set all spinboxes to the same width. */ @@ -62,7 +62,7 @@ public: public slots: /** @brief Sets the value to @param value. */ - void setValue(int value); + void setValue(double value); /** @brief Sets value to m_default. */ void slotReset(); @@ -71,7 +71,7 @@ private slots: /** @brief Shows/Hides the comment label. */ void slotShowComment(bool show); - void slotSetValue(int value, bool final); + void slotSetValue(double value, bool final); private: QLabel *m_name; @@ -81,7 +81,7 @@ private: QLabel *m_commentLabel; signals: - void valueChanged(int); + void valueChanged(double); /** @brief User wants to see this parameter in timeline. */ void setInTimeline(int); };