Skip to content
Permalink
Browse files

[relations] Save relation name from add dialog.

And some smaller leftover cleanup
  • Loading branch information
m-kuhn committed Oct 11, 2013
1 parent d384786 commit 58b7199f9e23801f33380eef1fb3c24a6de29f62
Showing with 1 addition and 18 deletions.
  1. +1 −17 src/gui/qgsrelationmanagerdialog.cpp
  2. +0 −1 src/gui/qgsrelationmanagerdialog.h
@@ -110,6 +110,7 @@ void QgsRelationManagerDialog::on_mBtnAddRelation_clicked()
}
relation.setRelationId( relationId );
relation.addFieldPair( addDlg.references().first().first, addDlg.references().first().second );
relation.setRelationName( addDlg.relationName() );

addRelation( relation );
}
@@ -135,20 +136,3 @@ QList< QgsRelation > QgsRelationManagerDialog::relations()
return relations;
}

#if 0
QTreeWidgetItem* QgsRelationManagerDialog::findLayerItem( QString id )
{
int count = mRelationsTreeWdg->topLevelItemCount();

for ( int i = 0; i < count; ++i )
{
QTreeWidgetItem* item = mRelationsTreeWdg->topLevelItem( i );
if ( item->data( 0, Qt::UserRole ).toString() == id )
{
return item;
}
}

return NULL;
}
#endif
@@ -43,7 +43,6 @@ class GUI_EXPORT QgsRelationManagerDialog : public QWidget, private Ui::QgsRelat

private:
QgsRelationManager* mRelationManager;
// QgsRelationManagerTreeModel* mRelationTreeModel;
QList< QgsVectorLayer* > mLayers;
};

0 comments on commit 58b7199

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