Skip to content
Permalink
Browse files

Remove unused method

  • Loading branch information
m-kuhn committed May 28, 2014
1 parent 9a10b79 commit 4e50f5455215aa820fe073c9e630e3193fef1c38
Showing with 0 additions and 19 deletions.
  1. +0 −18 src/app/qgsfieldsproperties.cpp
  2. +0 −1 src/app/qgsfieldsproperties.h
@@ -460,24 +460,6 @@ void QgsFieldsProperties::attributeDeleted( int idx )
}
}

void QgsFieldsProperties::addAttribute()
{
QgsAddAttrDialog dialog( mLayer, this );
if ( dialog.exec() == QDialog::Accepted )
{
mLayer->beginEditCommand( "Attribute added" );
if ( !addAttribute( dialog.field() ) )
{
mLayer->destroyEditCommand();
QMessageBox::information( this, tr( "Name conflict" ), tr( "The attribute could not be inserted. The name already exists in the table." ) );
}
else
{
mLayer->endEditCommand();
}
}
}

bool QgsFieldsProperties::addAttribute( const QgsField &field )
{
QgsDebugMsg( "inserting attribute " + field.name() + " of type " + field.typeName() );
@@ -170,7 +170,6 @@ class APP_EXPORT QgsFieldsProperties : public QWidget, private Ui_QgsFieldsPrope
void on_pbnSelectEditForm_clicked();
void on_mEditorLayoutComboBox_currentIndexChanged( int index );

void addAttribute();
void attributeAdded( int idx );
void attributeDeleted( int idx );
void attributeTypeDialog();

0 comments on commit 4e50f54

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