Commit db6f8174 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Proper rounding for persistant quality slider value

Related to 7a54eea5
parent c10a0984
Pipeline #191601 passed with stage
in 6 minutes and 3 seconds
......@@ -1347,7 +1347,7 @@ void RenderWidget::refreshParams()
double factor = double(m_view.quality->value()) / double(m_view.quality->maximum());
m_view.quality->setMaximum(qMin(100, qMax(vrange, arange)));
m_view.quality->setValue(m_view.quality->maximum() * factor);
m_view.quality->setValue(qRound(m_view.quality->maximum() * factor));
double percent = double(m_view.quality->value()) / double(m_view.quality->maximum());
m_view.qualityPercent->setText(QStringLiteral("%1%").arg(qRound(percent * 100)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment