Summary: | focus search field initially | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Stefan Monov <logixoul> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | finex |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Stefan Monov
2006-10-21 02:42:45 UTC
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! |