Changes the clone pattern method name

- Changes method name from cloneBBTrackPattern to clonePattern
- Small fix on the comments
- Adds a TODO comment regarding reusing the code from TrackOperationsWidget as a reference, so we can later figure out a way to not repeat the code
This commit is contained in:
IanCaio
2020-06-13 12:14:47 -03:00
parent 503006057c
commit b1c1d14601
2 changed files with 5 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ public slots:
void removeSteps();
void addSampleTrack();
void addAutomationTrack();
void cloneBBTrackPattern();
void clonePattern();
protected slots:
void dropEvent(QDropEvent * de ) override;

View File

@@ -88,7 +88,7 @@ BBEditor::BBEditor( BBTrackContainer* tc ) :
trackAndStepActionsToolBar->addAction(embed::getIconPixmap("add_bb_track"), tr("Add beat/bassline"),
Engine::getSong(), SLOT(addBBTrack()));
trackAndStepActionsToolBar->addAction(embed::getIconPixmap("clone_bb_track_pattern"), tr("Clone beat/bassline pattern"),
m_trackContainerView, SLOT(cloneBBTrackPattern()));
m_trackContainerView, SLOT(clonePattern()));
trackAndStepActionsToolBar->addAction(
embed::getIconPixmap("add_sample_track"),
tr("Add sample-track"), m_trackContainerView,
@@ -315,8 +315,9 @@ void BBTrackContainerView::makeSteps( bool clone )
}
}
// Creates a clone of the current BB track with the same pattern, but with no TCOs on the song editor
void BBTrackContainerView::cloneBBTrackPattern()
// Creates a clone of the current BB track with the same pattern, but no TCOs in the song editor
// TODO: Avoid repeated code from cloneTrack and clearTrack in TrackOperationsWidget somehow
void BBTrackContainerView::clonePattern()
{
// Get the current BBTrack id
BBTrackContainer *bbtc = static_cast<BBTrackContainer*>(model());