Cleanup
This commit is contained in:
@@ -172,6 +172,7 @@ void RationalSlider::ConvertValue(QVariant v)
|
||||
|
||||
void RationalSlider::changeDisplayType()
|
||||
{
|
||||
// Loop through the display types
|
||||
SetDisplayType(static_cast<RationalSlider::DisplayType>(((int)(display_type_)+1)%4));
|
||||
ForceLabelUpdate();
|
||||
}
|
||||
|
||||
@@ -375,9 +375,7 @@ void SliderBase::LadderReleased()
|
||||
SetValue(clamped_temp_dragged_value_.toDouble());
|
||||
break;
|
||||
case kRational:
|
||||
QVariant r;
|
||||
r.setValue(rational::fromDouble(temp_dragged_value_.value<rational>().toDouble()));
|
||||
SetValue(r);
|
||||
SetValue(temp_dragged_value_);
|
||||
}
|
||||
|
||||
emit ValueChanged(value_);
|
||||
|
||||
Reference in New Issue
Block a user