Skip to content

Commit

Permalink
Remove field type indicators in attribute form
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14673 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 14, 2010
1 parent 6d2d71a commit 9774a6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsattributedialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -140,20 +140,20 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
mypInnerLayout->addWidget( mypLabel, index, 0 ); mypInnerLayout->addWidget( mypLabel, index, 0 );
if ( myFieldType == QVariant::Int ) if ( myFieldType == QVariant::Int )
{ {
mypLabel->setText( myFieldName + tr( " (int)" ) ); mypLabel->setText( myFieldName );
} }
else if ( myFieldType == QVariant::Double ) else if ( myFieldType == QVariant::Double )
{ {
mypLabel->setText( myFieldName + tr( " (dbl)" ) ); mypLabel->setText( myFieldName );
} }
else if ( myFieldType == QVariant::LongLong ) else if ( myFieldType == QVariant::LongLong )
{ {
mypLabel->setText( myFieldName + tr( " (long)" ) ); mypLabel->setText( myFieldName );
} }
else //string else //string
{ {
//any special behaviour for string goes here //any special behaviour for string goes here
mypLabel->setText( myFieldName + tr( " (txt)" ) ); mypLabel->setText( myFieldName );
} }


if ( vl->editType( it.key() ) != QgsVectorLayer::Immutable ) if ( vl->editType( it.key() ) != QgsVectorLayer::Immutable )
Expand Down

0 comments on commit 9774a6e

Please sign in to comment.