Set focus on "named" field when kfind starts instead of the "Find" button.

By setting the initial focus on "named" field, the user does not need to select
it before introducing the search string and, as pointed by the bug reporter,
the default action is "Find", so an 'Enter pressed' triggers the search independently
of the focused widget.

BUG:239026


svn path=/trunk/KDE/kdebase/apps/; revision=1131315
This commit is contained in:
Anselmo Melo 2010-05-28 02:31:58 +00:00
parent 8867c2237f
commit 58988f4cef

View file

@ -62,6 +62,7 @@ KfindDlg::KfindDlg(const KUrl & url, QWidget *parent)
// create tabwidget
tabWidget = new KfindTabWidget( frame );
tabWidget->setURL( url );
tabWidget->setFocus();
// prepare window for find results
win = new KFindTreeView(frame, this);