]> git.sesse.net Git - kdenlive/blobdiff - src/doubleparameterwidget.cpp
Make it possible to add a comment explaining effect parameters (for now only double...
[kdenlive] / src / doubleparameterwidget.cpp
index c06e0ed4fd964a90d4fd2c747db30e47c478e5ba..efc28e0bd0254de4cd97268aed08a701c54c8dba 100644 (file)
 #include <KLocalizedString>
 
 
-DoubleParameterWidget::DoubleParameterWidget(const QString &name, int value, int min, int max, int defaultValue, const QString suffix, QWidget *parent) :
+DoubleParameterWidget::DoubleParameterWidget(const QString &name, int value, int min, int max, int defaultValue, const QString &comment, const QString suffix, QWidget *parent) :
         QWidget(parent),
         m_default(defaultValue)
 {
+    setToolTip(comment);
+
     QHBoxLayout *layout = new QHBoxLayout(this);
     layout->setContentsMargins(0, 0, 0, 0);