[QGIS Commit] r14456 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Oct 30 10:32:45 EDT 2010


Author: wonder
Date: 2010-10-30 07:32:45 -0700 (Sat, 30 Oct 2010)
New Revision: 14456

Modified:
   trunk/qgis/src/app/qgspluginmanager.cpp
Log:
Plugin manager: set focus to the filter edit box so that it is possible to search immediately after opening the dialog


Modified: trunk/qgis/src/app/qgspluginmanager.cpp
===================================================================
--- trunk/qgis/src/app/qgspluginmanager.cpp	2010-10-30 14:27:23 UTC (rev 14455)
+++ trunk/qgis/src/app/qgspluginmanager.cpp	2010-10-30 14:32:45 UTC (rev 14456)
@@ -85,7 +85,6 @@
   //
   QPushButton * btnSelectAll = new QPushButton( tr( "&Select All" ) );
   QPushButton * btnClearAll = new QPushButton( tr( "&Clear All" ) );
-  btnSelectAll->setDefault( true );
   buttonBox->addButton( btnSelectAll, QDialogButtonBox::ActionRole );
   buttonBox->addButton( btnClearAll, QDialogButtonBox::ActionRole );
   // connect the slot up to catch when a bookmark is deleted
@@ -93,6 +92,8 @@
   // connect the slot up to catch when a bookmark is zoomed to
   connect( btnClearAll, SIGNAL( clicked() ), this, SLOT( clearAll() ) );
 
+  leFilter->setFocus( Qt::MouseFocusReason );
+
   qRegisterMetaType<QgsDetailedItemData>();
 
   // disable plugin installer button for now until we resolve some problems [MD]



More information about the QGIS-commit mailing list