From b01a0de8d6dad861082d7c11f31a87f6913621b1 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 28 Jun 2012 12:35:20 +0200 Subject: [PATCH] Re-enable a few disabled features from the Qocoa porting. --- src/library/libraryfilterwidget.cpp | 2 +- src/playlist/playlistcontainer.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/library/libraryfilterwidget.cpp b/src/library/libraryfilterwidget.cpp index 75e58f32c..b30df6d5b 100644 --- a/src/library/libraryfilterwidget.cpp +++ b/src/library/libraryfilterwidget.cpp @@ -40,7 +40,7 @@ LibraryFilterWidget::LibraryFilterWidget(QWidget *parent) delay_behaviour_(DelayedOnLargeLibraries) { ui_->setupUi(this); - //connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed())); + connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed())); connect(filter_delay_, SIGNAL(timeout()), SLOT(FilterDelayTimeout())); filter_delay_->setInterval(kFilterDelay); diff --git a/src/playlist/playlistcontainer.cpp b/src/playlist/playlistcontainer.cpp index cf7af303f..e32d4a77a 100644 --- a/src/playlist/playlistcontainer.cpp +++ b/src/playlist/playlistcontainer.cpp @@ -209,8 +209,8 @@ void PlaylistContainer::SetViewModel(Playlist* playlist) { did_you_mean()->hide(); // Implement special playlist behaviour - //const SpecialPlaylistType* type = manager_->GetPlaylistType(playlist->special_type()); - //ui_->filter->setHint(type->search_hint_text(playlist)); + const SpecialPlaylistType* type = manager_->GetPlaylistType(playlist->special_type()); + ui_->filter->setPlaceholderText(type->search_hint_text(playlist)); } void PlaylistContainer::ActivePlaying() { @@ -420,8 +420,8 @@ void PlaylistContainer::resizeEvent(QResizeEvent* e) { } void PlaylistContainer::FocusOnFilter(QKeyEvent *event) { - //ui_->filter->setFocus(); - //QApplication::sendEvent(ui_->filter, event); + ui_->filter->setFocus(); + QApplication::sendEvent(ui_->filter, event); } void PlaylistContainer::RepositionNoMatchesLabel(bool force) {