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@14673 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 14, 2010
1 parent 199dda0 commit 7efc989
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,20 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
mypInnerLayout->addWidget( mypLabel, index, 0 );
if ( myFieldType == QVariant::Int )
{
mypLabel->setText( myFieldName + tr( " (int)" ) );
mypLabel->setText( myFieldName );
}
else if ( myFieldType == QVariant::Double )
{
mypLabel->setText( myFieldName + tr( " (dbl)" ) );
mypLabel->setText( myFieldName );
}
else if ( myFieldType == QVariant::LongLong )
{
mypLabel->setText( myFieldName + tr( " (long)" ) );
mypLabel->setText( myFieldName );
}
else //string
{
//any special behaviour for string goes here
mypLabel->setText( myFieldName + tr( " (txt)" ) );
mypLabel->setText( myFieldName );
}

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

0 comments on commit 7efc989

Please sign in to comment.