keyframeviewbase: cleaned up code and show tooltip values in input's desired format

This commit is contained in:
itsmattkc
2021-01-25 11:05:09 +11:00
parent 9f99182089
commit 4e5db91c17
11 changed files with 135 additions and 162 deletions
+3 -1
View File
@@ -20,6 +20,8 @@
#include "volume.h"
#include "widget/slider/floatslider.h"
namespace olive {
VolumeNode::VolumeNode()
@@ -29,7 +31,7 @@ VolumeNode::VolumeNode()
volume_input_ = new NodeInput(this, QStringLiteral("volume_in"), NodeValue::kFloat, 1.0);
volume_input_->setProperty("min", 0.0);
volume_input_->setProperty("view", QStringLiteral("db"));
volume_input_->setProperty("view", FloatSlider::kDecibel);
}
Node *VolumeNode::copy() const