1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

WebSearchBar: Select alls text + set focus after search engine changed.

This avoids another (double)click to select the text.
This commit is contained in:
Franz Fellner 2012-12-05 11:53:56 +01:00
parent 4e7fae4155
commit 9ec85ad49d

View File

@ -174,6 +174,8 @@ void WebSearchBar::setupEngines()
void WebSearchBar::searchChanged(const ButtonWithMenu::Item &item) void WebSearchBar::searchChanged(const ButtonWithMenu::Item &item)
{ {
selectAll();
setFocus();
setPlaceholderText(item.text); setPlaceholderText(item.text);
m_completerModel->setStringList(QStringList()); m_completerModel->setStringList(QStringList());