Skip to content
Permalink
Browse files
When capturing new points (e.g.) set focus to first attribute field t…
…o edit. No need to use the mouse for entering data. Fixes #1158

git-svn-id: http://svn.osgeo.org/qgis/trunk@9510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Oct 21, 2008
1 parent 9ef779f commit daad899baad92eab91b9be72405d0695fdf716ff
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsattributedialog.cpp
@@ -284,6 +284,11 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
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();
}

0 comments on commit daad899

Please sign in to comment.