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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Oct 21 13:35:13 EDT 2008


Author: homann
Date: 2008-10-21 13:35:13 -0400 (Tue, 21 Oct 2008)
New Revision: 9510

Modified:
   trunk/qgis/src/app/qgsattributedialog.cpp
Log:
When capturing new points (e.g.) set focus to first attribute field to edit. No need to use the mouse for entering data. Fixes #1158

Modified: trunk/qgis/src/app/qgsattributedialog.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributedialog.cpp	2008-10-21 17:09:47 UTC (rev 9509)
+++ trunk/qgis/src/app/qgsattributedialog.cpp	2008-10-21 17:35:13 UTC (rev 9510)
@@ -284,6 +284,11 @@
     mpWidgets << myWidget;
     ++index;
   }
+  // Set focus to first widget in list, to help entering data without moving the mouse.
+  if ( mpWidgets.size() > 0 )
+  {
+    mpWidgets.first()->setFocus( Qt::OtherFocusReason );
+  }
   restoreGeometry();
 }
 



More information about the QGIS-commit mailing list