Skip to content

Commit

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

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Oct 21, 2008
1 parent 18aaf33 commit db03de5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
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 db03de5

Please sign in to comment.