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:
crystalreef22
2025-09-08 00:37:31 -04:00
committed by GitHub
parent fbac56fdcc
commit 04b27eee50
2 changed files with 6 additions and 0 deletions

View File

@@ -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();

View File

@@ -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() *