diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2018-11-18 14:13:26 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2018-11-18 14:13:26 +0100 |
commit | 58f7b6aa1a20d3dde0421a2a84469e7ee877120c (patch) | |
tree | 74b3346f16dfa934d5546c39ea645f244c2d0924 /src/library/library.cpp | |
parent | 31493e8eb747ebfea94eeb39d84910b3cb509dce (diff) | |
parent | 3d3d1237979492a20de0969b30ae8165490382a8 (diff) |
Merge branch '2.1' of git@github.com:mixxxdj/mixxx.git into 2.2
# Conflicts:
# src/widget/wsearchlineedit.cpp
Diffstat (limited to 'src/library/library.cpp')
-rw-r--r-- | src/library/library.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/library/library.cpp b/src/library/library.cpp index c47f813b3c..e223fa9ba0 100644 --- a/src/library/library.cpp +++ b/src/library/library.cpp @@ -36,6 +36,7 @@ #include "widget/wtracktableview.h" #include "widget/wlibrary.h" #include "widget/wlibrarysidebar.h" +#include "widget/wsearchlineedit.h" #include "controllers/keyboard/keyboardeventfilter.h" @@ -251,11 +252,6 @@ void Library::bindWidget(WLibrary* pLibraryWidget, connect(this, SIGNAL(setSelectedClick(bool)), pTrackTableView, SLOT(setSelectedClick(bool))); - connect(this, SIGNAL(searchStarting()), - pTrackTableView, SLOT(onSearchStarting())); - connect(this, SIGNAL(searchCleared()), - pTrackTableView, SLOT(onSearchCleared())); - m_pLibraryControl->bindWidget(pLibraryWidget, pKeyboard); QListIterator<LibraryFeature*> feature_it(m_features); @@ -287,6 +283,8 @@ void Library::addFeature(LibraryFeature* feature) { this, SLOT(slotLoadTrackToPlayer(TrackPointer, QString, bool))); connect(feature, SIGNAL(restoreSearch(const QString&)), this, SLOT(slotRestoreSearch(const QString&))); + connect(feature, SIGNAL(disableSearch()), + this, SLOT(slotDisableSearch())); connect(feature, SIGNAL(enableCoverArtDisplay(bool)), this, SIGNAL(enableCoverArtDisplay(bool))); connect(feature, SIGNAL(trackSelected(TrackPointer)), @@ -326,7 +324,11 @@ void Library::slotLoadTrackToPlayer(TrackPointer pTrack, QString group, bool pla } void Library::slotRestoreSearch(const QString& text) { - emit(restoreSearch(text)); + emit restoreSearch(text); +} + +void Library::slotDisableSearch() { + emit disableSearch(); } void Library::slotRefreshLibraryModels() { |