Skip to content
Permalink
Browse files
select current value when lineedit gets focus in attribute dialog (fixes
 #2742)

git-svn-id: http://svn.osgeo.org/qgis/trunk@13546 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 22, 2010
1 parent 63c6950 commit 331dee96d26d0e55d231c976ed5a823961ccb103
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsattributedialog.cpp
@@ -40,6 +40,7 @@
#include <QUiLoader>
#include <QDialog>
#include <QVBoxLayout>
#include <QLineEdit>

QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeature )
: mDialog( 0 )
@@ -352,6 +353,10 @@ bool QgsAttributeDialog::eventFilter( QObject *obj, QEvent *e )
break;
}
}
else if ( e->type() == QEvent::FocusIn && qobject_cast<QLineEdit *>( obj ) )
{
qobject_cast<QLineEdit *>( obj )->selectAll();
}

return false;
}

0 comments on commit 331dee9

Please sign in to comment.