Skip to content

Commit

Permalink
prepsetsearch-dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynnev committed Feb 7, 2025
1 parent 3798c5d commit 2d640be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions src/widget/wlibrarypreparationwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,20 @@ void WLibraryPreparationWindow::pasteFromSidebarInPreparationWindow() {
}
}

void WLibraryPreparationWindow::search(const QString& name) {
// auto lock = lockMutex(&m_mutex);
// QWidget* pCurrent = currentWidget();
// LibraryView* pView = dynamic_cast<LibraryView*>(pCurrent);
// if (pView == nullptr) {
// qDebug() << "WARNING: Attempted to search in view" << name <<
// "with WLibraryPreparationWindow "
// << "which does not implement the LibraryView interface.
// Ignoring.";
// return;
// }
// lock.unlock();
// pView->onSearch(name);
}
// void WLibraryPreparationWindow::search(const QString& name) {
// auto lock = lockMutex(&m_mutex);
// QWidget* pCurrent = currentWidget();
// LibraryView* pView = dynamic_cast<LibraryView*>(pCurrent);
// if (pView == nullptr) {
// qDebug() << "WARNING: Attempted to search in view" << name <<
// "with WLibraryPreparationWindow "
// << "which does not implement the LibraryView interface.
// Ignoring.";
// return;
// }
// lock.unlock();
// pView->onSearch(name);
//}

// LibraryView* WLibraryPreparationWindow::getActiveView() const {
// return dynamic_cast<LibraryView*>(currentWidget());
Expand Down
2 changes: 1 addition & 1 deletion src/widget/wlibrarypreparationwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class WLibraryPreparationWindow : public QStackedWidget, public WBaseWidget {
void slotSelectTrackInActiveTrackView(const TrackId& trackId);
void pasteFromSidebarInPreparationWindow();

void search(const QString&);
// void search(const QString&);

protected:
bool event(QEvent* pEvent) override;
Expand Down

0 comments on commit 2d640be

Please sign in to comment.