void LibraryControl::slotSelectTrackKnob(double v) { if (m_pLibraryWidget == NULL) { return; } int i = (int)v; LibraryView* activeView = m_pLibraryWidget->getActiveView(); if (!activeView) { return; } activeView->moveSelection(i); }
void LibraryControl::slotSelectPrevTrack(double v) { if (m_pLibraryWidget == NULL) { return; } if (v > 0) { LibraryView* activeView = m_pLibraryWidget->getActiveView(); if (!activeView) { return; } activeView->moveSelection(-1); } }