Open editor in attribute table on single click

This commit is contained in:
Nyall Dawson 2016-05-20 13:14:33 +10:00
parent 0fcff9f2a0
commit 88db4f9ad3

View File

@ -57,6 +57,8 @@ QgsAttributeTableView::QgsAttributeTableView( QWidget *parent )
mTableDelegate = new QgsAttributeTableDelegate( this );
setItemDelegate( mTableDelegate );
setEditTriggers( QAbstractItemView::AllEditTriggers );
setSelectionBehavior( QAbstractItemView::SelectRows );
setSelectionMode( QAbstractItemView::ExtendedSelection );
setSortingEnabled( true ); // At this point no data is in the model yet, so actually nothing is sorted.