summaryrefslogtreecommitdiffstats
path: root/src/library/library.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-02-15 21:32:29 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-02-15 21:32:29 +0100
commit0c5c24e036d46019ef0851748fcf968bbc4474e0 (patch)
treeda6ed62db9330ead0e8bf0a8d01be3b54fd32d5e /src/library/library.cpp
parent13914af17942b081ab915a39c4b014e66a62db37 (diff)
parent26fc46fef090d964cf1ab37065f759b75fccf393 (diff)
Merge branch 'master' of github.com:mixxxdj/mixxx into serato-library-feature
Diffstat (limited to 'src/library/library.cpp')
-rw-r--r--src/library/library.cpp28
1 files changed, 10 insertions, 18 deletions
diff --git a/src/library/library.cpp b/src/library/library.cpp
index 9ce88bb013..0c08e7df98 100644
--- a/src/library/library.cpp
+++ b/src/library/library.cpp
@@ -233,14 +233,14 @@ void Library::bindSearchboxWidget(WSearchLineEdit* pSearchboxWidget) {
&WSearchLineEdit::search,
this,
&Library::search);
- connect(pSearchboxWidget,
- &WSearchLineEdit::disableSearch,
- this,
- &Library::disableSearch);
- connect(pSearchboxWidget,
- &WSearchLineEdit::restoreSearch,
- this,
- &Library::restoreSearch);
+ connect(this,
+ &Library::disableSearch,
+ pSearchboxWidget,
+ &WSearchLineEdit::disableSearch);
+ connect(this,
+ &Library::restoreSearch,
+ pSearchboxWidget,
+ &WSearchLineEdit::restoreSearch);
connect(this,
&Library::setTrackTableFont,
pSearchboxWidget,
@@ -372,11 +372,11 @@ void Library::addFeature(LibraryFeature* feature) {
connect(feature,
&LibraryFeature::restoreSearch,
this,
- &Library::slotRestoreSearch);
+ &Library::restoreSearch); // forward signal
connect(feature,
&LibraryFeature::disableSearch,
this,
- &Library::slotDisableSearch);
+ &Library::disableSearch); // forward signal
connect(feature,
&LibraryFeature::enableCoverArtDisplay,
this,
@@ -432,14 +432,6 @@ void Library::slotLoadTrackToPlayer(TrackPointer pTrack, QString group, bool pla
emit loadTrackToPlayer(pTrack, group, play);
}
-void Library::slotRestoreSearch(const QString& text) {
- emit restoreSearch(text);
-}
-
-void Library::slotDisableSearch() {
- emit disableSearch();
-}
-
void Library::slotRefreshLibraryModels() {
m_pMixxxLibraryFeature->refreshLibraryModels();
m_pAnalysisFeature->refreshLibraryModels();