Skip to content
Permalink
Browse files

better order of columns in fields tab (vector layer properties) (#3195)

  • Loading branch information
3nids authored and m-kuhn committed Jun 10, 2016
1 parent 91de99a commit 02d80425ac7af14e7c6c2851a20c8d3aebb3770e
Showing with 10 additions and 3 deletions.
  1. +8 −1 src/app/qgsfieldsproperties.cpp
  2. +2 −2 src/app/qgsfieldsproperties.h
@@ -305,7 +305,14 @@ void QgsFieldsProperties::setRow( int row, int idx, const QgsField& field )
mFieldsList->setItem( row, attrCommentCol, new QTableWidgetItem( field.comment() ) );
}

for ( int i = 0; i < attrCommentCol; i++ )
QList<int> notEditableCols = QList<int>()
<< attrIdCol
<< attrNameCol
<< attrTypeCol
<< attrTypeNameCol
<< attrLengthCol
<< attrPrecCol;
Q_FOREACH ( int i, notEditableCols )
mFieldsList->item( row, i )->setFlags( mFieldsList->item( row, i )->flags() & ~Qt::ItemIsEditable );

bool canRenameFields = mLayer->isEditable() && ( mLayer->dataProvider()->capabilities() & QgsVectorDataProvider::RenameAttributes ) && !mLayer->readOnly();
@@ -192,13 +192,13 @@ class APP_EXPORT QgsFieldsProperties : public QWidget, private Ui_QgsFieldsPrope
{
attrIdCol = 0,
attrNameCol,
attrEditTypeCol,
attrAliasCol,
attrTypeCol,
attrTypeNameCol,
attrLengthCol,
attrPrecCol,
attrCommentCol,
attrEditTypeCol,
attrAliasCol,
attrWMSCol,
attrWFSCol,
attrColCount,

0 comments on commit 02d8042

Please sign in to comment.
You can’t perform that action at this time.