diff options
author | Harshit Maurya <hmaurya999@gmail.com> | 2020-04-13 21:32:12 +0530 |
---|---|---|
committer | Harshit Maurya <hmaurya999@gmail.com> | 2020-04-13 21:32:12 +0530 |
commit | 460e18b7261850c6a28b0c1b8ad5ab2b563fd80b (patch) | |
tree | ca84928a563b964505a315be67780dd052d7ea37 /src/library | |
parent | 0143e7e03020e45fe9badb8e9c080d8e4b2f023c (diff) |
DlgTrackInfo: rename changeTrack to loadTrackInternal
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/dlgtagfetcher.cpp | 6 | ||||
-rw-r--r-- | src/library/dlgtagfetcher.h | 2 | ||||
-rw-r--r-- | src/library/dlgtrackinfo.cpp | 6 | ||||
-rw-r--r-- | src/library/dlgtrackinfo.h | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/library/dlgtagfetcher.cpp b/src/library/dlgtagfetcher.cpp index bf4307b5fe..17049b1db2 100644 --- a/src/library/dlgtagfetcher.cpp +++ b/src/library/dlgtagfetcher.cpp @@ -107,7 +107,7 @@ void DlgTagFetcher::slotPrev() { } } -void DlgTagFetcher::changeTrack(const TrackPointer& track) { +void DlgTagFetcher::loadTrackInternal(const TrackPointer& track) { if (!track) { return; } @@ -135,7 +135,7 @@ void DlgTagFetcher::loadTrack(const TrackPointer& track) { VERIFY_OR_DEBUG_ASSERT(!m_pTrackModel) { return; } - changeTrack(track); + loadTrackInternal(track); } void DlgTagFetcher::loadTrack(const QModelIndex& index) { @@ -144,7 +144,7 @@ void DlgTagFetcher::loadTrack(const QModelIndex& index) { } TrackPointer pTrack = m_pTrackModel->getTrack(index); m_currentTrackIndex = index; - changeTrack(pTrack); + loadTrackInternal(pTrack); } void DlgTagFetcher::slotTrackChanged(TrackId trackId) { diff --git a/src/library/dlgtagfetcher.h b/src/library/dlgtagfetcher.h index c0833c8dac..07f309e0bc 100644 --- a/src/library/dlgtagfetcher.h +++ b/src/library/dlgtagfetcher.h @@ -40,7 +40,7 @@ class DlgTagFetcher : public QDialog, public Ui::DlgTagFetcher { void slotPrev(); private: - void changeTrack(const TrackPointer& track); + void loadTrackInternal(const TrackPointer& track); void updateStack(); void addDivider(const QString& text, QTreeWidget* parent) const; diff --git a/src/library/dlgtrackinfo.cpp b/src/library/dlgtrackinfo.cpp index f0505f5338..52c3221f36 100644 --- a/src/library/dlgtrackinfo.cpp +++ b/src/library/dlgtrackinfo.cpp @@ -263,7 +263,7 @@ void DlgTrackInfo::reloadTrackBeats(const Track& track) { } } -void DlgTrackInfo::changeTrack(const TrackPointer& pTrack) { +void DlgTrackInfo::loadTrackInternal(const TrackPointer& pTrack) { clear(); if (!pTrack) { @@ -287,7 +287,7 @@ void DlgTrackInfo::loadTrack(TrackPointer pTrack) { VERIFY_OR_DEBUG_ASSERT(!m_pTrackModel) { return; } - changeTrack(pTrack); + loadTrackInternal(pTrack); } void DlgTrackInfo::loadTrack(QModelIndex index) { @@ -296,7 +296,7 @@ void DlgTrackInfo::loadTrack(QModelIndex index) { } TrackPointer pTrack = m_pTrackModel->getTrack(index); m_currentTrackIndex = index; - changeTrack(pTrack); + loadTrackInternal(pTrack); } void DlgTrackInfo::slotCoverFound( diff --git a/src/library/dlgtrackinfo.h b/src/library/dlgtrackinfo.h index 495bc1dbc4..d56e63b860 100644 --- a/src/library/dlgtrackinfo.h +++ b/src/library/dlgtrackinfo.h @@ -71,7 +71,7 @@ class DlgTrackInfo : public QDialog, public Ui::DlgTrackInfo { void slotReloadCoverArt(); private: - void changeTrack(const TrackPointer& pTrack); + void loadTrackInternal(const TrackPointer& pTrack); void populateFields(const Track& track); void reloadTrackBeats(const Track& track); void saveTrack(); |