diff options
Diffstat (limited to 'src/library/dlgtrackinfo.cpp')
-rw-r--r-- | src/library/dlgtrackinfo.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/library/dlgtrackinfo.cpp b/src/library/dlgtrackinfo.cpp index 55912882d2..4eca26de33 100644 --- a/src/library/dlgtrackinfo.cpp +++ b/src/library/dlgtrackinfo.cpp @@ -63,6 +63,10 @@ void DlgTrackInfo::init() { this, SLOT(slotBpmTwoThirds())); connect(bpmThreeFourth, SIGNAL(clicked()), this, SLOT(slotBpmThreeFourth())); + connect(bpmFourThirds, SIGNAL(clicked()), + this, SLOT(slotBpmFourThirds())); + connect(bpmThreeHalves, SIGNAL(clicked()), + this, SLOT(slotBpmThreeHalves())); connect(bpmClear, SIGNAL(clicked()), this, SLOT(slotBpmClear())); @@ -503,6 +507,20 @@ void DlgTrackInfo::slotBpmThreeFourth() { spinBpm->setValue(newValue); } +void DlgTrackInfo::slotBpmFourThirds() { + m_pBeatsClone->scale(Beats::FOURTHIRDS); + // read back the actual value + double newValue = m_pBeatsClone->getBpm(); + spinBpm->setValue(newValue); +} + +void DlgTrackInfo::slotBpmThreeHalves() { + m_pBeatsClone->scale(Beats::THREEHALVES); + // read back the actual value + double newValue = m_pBeatsClone->getBpm(); + spinBpm->setValue(newValue); +} + void DlgTrackInfo::slotBpmClear() { spinBpm->setValue(0); m_pBeatsClone.clear(); |