implemented percentage and decibel view modes for slider

A slider can now hold a float value and display it in the UI converted to
either a percentage or a decibel (still returning a linear float value
programmatically for the rest of the code).
This commit is contained in:
itsmattkc
2019-12-18 02:09:53 +11:00
parent be0d857e38
commit cde668b590
5 changed files with 131 additions and 10 deletions
+3 -1
View File
@@ -78,5 +78,7 @@ void SliderLabel::focusInEvent(QFocusEvent *event)
{
QWidget::focusInEvent(event);
emit focused();
if (event->reason() == Qt::TabFocusReason) {
emit focused();
}
}