Skip to content
Permalink
Browse files
fix #1274
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9250 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 2, 2008
1 parent 97808fb commit 1ca3099048bbe6db83cda24abcec53ccfdcacc32
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/qgsattributetable.cpp
@@ -103,12 +103,16 @@ QgsAttributeTable::~QgsAttributeTable()

void QgsAttributeTable::setReadOnly( bool b )
{
blockSignals(true);

setEditTriggers( b ? QAbstractItemView::NoEditTriggers :
QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed );
if ( !b )
{
setColumnReadOnly( 0, true );
}

blockSignals(false);
}

void QgsAttributeTable::setColumnReadOnly( int col, bool ro )
@@ -435,6 +439,8 @@ void QgsAttributeTable::copySelectedRows()

void QgsAttributeTable::fillTable( QgsVectorLayer *layer )
{
blockSignals(true);

const QgsFieldMap &fields = layer->pendingFields();

// set up the column headers
@@ -482,6 +488,8 @@ void QgsAttributeTable::fillTable( QgsVectorLayer *layer )
// Make each column wide enough to show all the contents
for ( int i = 0; i < columnCount(); i++ )
resizeColumnToContents( i );

blockSignals(false);
}

void QgsAttributeTable::putFeatureInTable( int row, const QgsFeature& fet )

0 comments on commit 1ca3099

Please sign in to comment.