[Bug 247497] Akonadi KCM: Search field in 'Add Resource' dialog should be focussed by default

Elias Probst mail at eliasprobst.eu
Thu Aug 12 16:40:04 BST 2010


https://bugs.kde.org/show_bug.cgi?id=247497





--- Comment #1 from Elias Probst <mail eliasprobst eu>  2010-08-12 17:40:02 ---
Volker Krause suggested the following patches:

kdelibs:
diff -ruN kdelibs-4.5.0.orig/kdeui/itemviews/kfilterproxysearchline.cpp
kdelibs-4.5.0/kdeui/itemviews/kfilterproxysearchline.cpp
--- kdelibs-4.5.0.orig/kdeui/itemviews/kfilterproxysearchline.cpp      
2009-09-23 21:24:05.000000000 +0200
+++ kdelibs-4.5.0/kdeui/itemviews/kfilterproxysearchline.cpp    2010-08-12
16:19:10.013000036 +0200
@@ -71,6 +71,7 @@
     d->searchLine = new KLineEdit( this );
     d->searchLine->setClearButtonShown( true );
     d->searchLine->setClickMessage(i18n("Search"));
+    setFocusProxy( d->searchLine );

     QHBoxLayout* layout = new QHBoxLayout( this );
     layout->setMargin( 0 );


kdepimlibs:
diff -ruN kdepimlibs-4.5.0.orig/akonadi/agenttypedialog.cpp
kdepimlibs-4.5.0/akonadi/agenttypedialog.cpp
--- kdepimlibs-4.5.0.orig/akonadi/agenttypedialog.cpp   2009-11-13
11:57:00.000000000 +0100
+++ kdepimlibs-4.5.0/akonadi/agenttypedialog.cpp        2010-08-12
15:19:38.304000036 +0200
@@ -49,6 +49,7 @@
   KFilterProxySearchLine* searchLine = new KFilterProxySearchLine(
mainWidget() );
   layout->addWidget( searchLine );
   searchLine->setProxy( d->Widget->agentFilterProxyModel() );
+  searchLine->setFocus();

   layout->addWidget( d->Widget );


The behaviour didn't change so far, does anyone have further ideas?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list