Version: 3.5.5 "release 19.1" (using KDE 3.5.5 "release 19.1" , openSUSE ) Compiler: Target: i586-suse-linux OS: Linux (i686) release 2.6.16.21-0.25-default How to reproduce: run kcontrol. Observed result: the search field isn't focused. Expected result: it is.
same in systemsettings in kde4 beta2
And here's a patch that does not work :) Index: workspace/systemsettings/mainwindow.cpp =================================================================== --- workspace/systemsettings/mainwindow.cpp (revision 811628) +++ workspace/systemsettings/mainwindow.cpp (working copy) @@ -236,6 +236,7 @@ search->setObjectName(QLatin1String("search")); search->setClearButtonShown( true ); search->setFocusPolicy( Qt::StrongFocus ); + search->setFocus(); searchLabel->setBuddy( search ); // Is that needed? I thought that's what a buddy is for? connect(searchText, SIGNAL(triggered()), search, SLOT(setFocus()));
This patch works: Index: mainwindow.cpp =================================================================== --- mainwindow.cpp (revisione 903695) +++ mainwindow.cpp (copia locale) @@ -71,7 +71,8 @@ // We hide the menubar. So ensure the toolbar is always visible because you cannot get it back setupGUI(Save|Create,QString()); menuBar()->hide(); - + search->setFocus(); + connect(moduleTabs, SIGNAL(currentChanged(int)), SLOT(widgetChange())); } But, should we really apply it?
SVN commit 903781 by finex: Set the focus to the filter bar. (before the focus was on the tab bar). BUG: 136065 M +2 -0 mainwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=903781
thx!