Allow Tempo Sync Knobs and Bars to be logarithmic (#8058)
* Allow Tempo Sync Knobs to be logarithmic * Allow Tempo Sync Bars to be logarithmic
This commit is contained in:
@@ -89,6 +89,9 @@ void TempoSyncBarModelEditor::contextMenuEvent(QContextMenuEvent *)
|
||||
|
||||
CaptionMenu contextMenu(tempoSyncModel->displayName(), this);
|
||||
addDefaultActions(&contextMenu);
|
||||
contextMenu.addAction(QPixmap(),
|
||||
model()->isScaleLogarithmic() ? tr("Set linear") : tr("Set logarithmic"),
|
||||
this, SLOT(toggleScale()));
|
||||
|
||||
contextMenu.addSeparator();
|
||||
|
||||
|
||||
@@ -107,6 +107,9 @@ void TempoSyncKnob::contextMenuEvent( QContextMenuEvent * )
|
||||
|
||||
CaptionMenu contextMenu( model()->displayName(), this );
|
||||
addDefaultActions( &contextMenu );
|
||||
contextMenu.addAction(QPixmap(),
|
||||
model()->isScaleLogarithmic() ? tr("Set linear") : tr("Set logarithmic"),
|
||||
this, SLOT(toggleScale()));
|
||||
contextMenu.addSeparator();
|
||||
|
||||
float limit = 60000.0f / ( Engine::getSong()->getTempo() *
|
||||
|
||||
Reference in New Issue
Block a user