various: adding files missing in last commit

Oddly some files didn't commit previously. This commit adds those.
This commit is contained in:
itsmattkc
2020-05-27 03:24:37 +10:00
parent 3e3cacbc85
commit 14ac1ada6e
9 changed files with 49 additions and 41 deletions
+4 -4
View File
@@ -149,7 +149,7 @@ void SliderBase::SetMinimumInternal(const QVariant &v)
has_min_ = true;
// Limit value by this new minimum value
if (value_ < min_value_) {
if (value_.toDouble() < min_value_.toDouble()) {
SetValue(min_value_);
}
}
@@ -160,7 +160,7 @@ void SliderBase::SetMaximumInternal(const QVariant &v)
has_max_ = true;
// Limit value by this new maximum value
if (value_ > max_value_) {
if (value_.toDouble() > max_value_.toDouble()) {
SetValue(max_value_);
}
}
@@ -175,11 +175,11 @@ void SliderBase::changeEvent(QEvent *e)
const QVariant &SliderBase::ClampValue(const QVariant &v)
{
if (has_min_ && v < min_value_) {
if (has_min_ && v.toDouble() < min_value_.toDouble()) {
return min_value_;
}
if (has_max_ && v > max_value_) {
if (has_max_ && v.toDouble() > max_value_.toDouble()) {
return max_value_;
}