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:
@@ -78,5 +78,7 @@ void SliderLabel::focusInEvent(QFocusEvent *event)
|
||||
{
|
||||
QWidget::focusInEvent(event);
|
||||
|
||||
emit focused();
|
||||
if (event->reason() == Qt::TabFocusReason) {
|
||||
emit focused();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user