mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-29 10:39:47 +01:00
Re-enable a few disabled features from the Qocoa porting.
This commit is contained in:
parent
e928ac0349
commit
b01a0de8d6
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user