Connect textChanged signal instead of textEdited, so the search results are updated (cleared) also when clear button is pressed

(cherry picked from commit 33b0c84f03)
This commit is contained in:
Arnaud Bienner 2011-12-05 23:06:09 +01:00 committed by David Sansome
parent 7dfbc2d2e1
commit 6fc02c364a
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ GlobalSearchWidget::GlobalSearchWidget(QWidget* parent)
next_suggestion_timer_->setInterval(kSuggestionTimeoutMsec);
hint_text_ = ui_->search->hint();
connect(ui_->search, SIGNAL(textEdited(QString)), SLOT(TextEdited(QString)));
connect(ui_->search, SIGNAL(textChanged(QString)), SLOT(TextEdited(QString)));
connect(view_, SIGNAL(doubleClicked(QModelIndex)), SLOT(ResultDoubleClicked()));
connect(view_->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
SLOT(UpdateTooltip()));