1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 12:02:48 +01:00

Use LineEdit::set_focus() instead of QWidget::setFocus() on LineEdit widgets that might be OS X search widgets

Fixes issue 2823
This commit is contained in:
David Sansome 2012-03-25 21:13:05 +01:00
parent e9ace3a2cb
commit 7d9f2b7b7d
3 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ LibraryFilterWidget::~LibraryFilterWidget() {
}
void LibraryFilterWidget::FocusOnFilter(QKeyEvent *event) {
ui_->filter->setFocus(Qt::OtherFocusReason);
ui_->filter->set_focus();
QApplication::sendEvent(ui_->filter, event);
}

View File

@ -431,7 +431,7 @@ void PlaylistContainer::resizeEvent(QResizeEvent* e) {
}
void PlaylistContainer::FocusOnFilter(QKeyEvent *event) {
ui_->filter->setFocus(Qt::OtherFocusReason);
ui_->filter->set_focus();
QApplication::sendEvent(ui_->filter, event);
}

View File

@ -137,7 +137,7 @@ void AlbumCoverSearcher::Init(AlbumCoverFetcher* fetcher) {
QImage AlbumCoverSearcher::Exec(const QString& artist, const QString& album) {
ui_->artist->setText(artist);
ui_->album->setText(album);
ui_->artist->setFocus();
ui_->artist->set_focus();
if(!artist.isEmpty() || !album.isEmpty()) {
Search();