mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-30 11:04:57 +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)
|
delay_behaviour_(DelayedOnLargeLibraries)
|
||||||
{
|
{
|
||||||
ui_->setupUi(this);
|
ui_->setupUi(this);
|
||||||
//connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed()));
|
connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed()));
|
||||||
connect(filter_delay_, SIGNAL(timeout()), SLOT(FilterDelayTimeout()));
|
connect(filter_delay_, SIGNAL(timeout()), SLOT(FilterDelayTimeout()));
|
||||||
|
|
||||||
filter_delay_->setInterval(kFilterDelay);
|
filter_delay_->setInterval(kFilterDelay);
|
||||||
|
@ -209,8 +209,8 @@ void PlaylistContainer::SetViewModel(Playlist* playlist) {
|
|||||||
did_you_mean()->hide();
|
did_you_mean()->hide();
|
||||||
|
|
||||||
// Implement special playlist behaviour
|
// Implement special playlist behaviour
|
||||||
//const SpecialPlaylistType* type = manager_->GetPlaylistType(playlist->special_type());
|
const SpecialPlaylistType* type = manager_->GetPlaylistType(playlist->special_type());
|
||||||
//ui_->filter->setHint(type->search_hint_text(playlist));
|
ui_->filter->setPlaceholderText(type->search_hint_text(playlist));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlaylistContainer::ActivePlaying() {
|
void PlaylistContainer::ActivePlaying() {
|
||||||
@ -420,8 +420,8 @@ void PlaylistContainer::resizeEvent(QResizeEvent* e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PlaylistContainer::FocusOnFilter(QKeyEvent *event) {
|
void PlaylistContainer::FocusOnFilter(QKeyEvent *event) {
|
||||||
//ui_->filter->setFocus();
|
ui_->filter->setFocus();
|
||||||
//QApplication::sendEvent(ui_->filter, event);
|
QApplication::sendEvent(ui_->filter, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlaylistContainer::RepositionNoMatchesLabel(bool force) {
|
void PlaylistContainer::RepositionNoMatchesLabel(bool force) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user