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
+2 -1
View File
@@ -24,6 +24,7 @@
#include "node/output/track/track.h"
#include "transition/transition.h"
#include "widget/slider/floatslider.h"
namespace olive {
@@ -52,7 +53,7 @@ Block::Block() :
speed_input_ = new NodeInput(this, QStringLiteral("speed_in"), NodeValue::kFloat);
speed_input_->SetStandardValue(1.0);
speed_input_->setProperty("view", QStringLiteral("percent"));
speed_input_->setProperty("view", FloatSlider::kPercentage);
// A block's length must be greater than 0
set_length_and_media_out(1);