1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Copy the character that triggered a search box focus into the search box.

This commit is contained in:
John Maguire 2012-07-12 19:08:11 +02:00
parent 501baa6597
commit 83f1aa9252

View File

@ -421,7 +421,7 @@ 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); ui_->filter->setText(ui_->filter->text() + event->text());
} }
void PlaylistContainer::RepositionNoMatchesLabel(bool force) { void PlaylistContainer::RepositionNoMatchesLabel(bool force) {