Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 daad899
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsattributedialog.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit daad899

Please sign in to comment.