Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
create a relationsChanged signal for relation manager
  • Loading branch information
3nids authored and nyalldawson committed Sep 21, 2014
1 parent 97ea6f6 commit d279197
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion python/core/qgsrelationmanager.sip
Expand Up @@ -12,7 +12,7 @@ class QgsRelationManager : QObject
void setRelations( const QList<QgsRelation>& relations );
const QMap<QString, QgsRelation>& relations() const;
void addRelation( const QgsRelation& relation );
void removeRelation( const QString& name );
void removeRelation( const QString& id );
void removeRelation( const QgsRelation& relation );
QgsRelation relation( const QString& id ) const;
void clear();
Expand All @@ -21,6 +21,7 @@ class QgsRelationManager : QObject
QList<QgsRelation> referencedRelations( QgsVectorLayer *layer = 0 ) const;

signals:
/** this signal is emitted when the relations were loaded after reading a project */
void relationsLoaded();

/**
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsrelationmanager.cpp
Expand Up @@ -56,9 +56,9 @@ void QgsRelationManager::addRelation( const QgsRelation& relation )
emit changed();
}

void QgsRelationManager::removeRelation( const QString& name )
void QgsRelationManager::removeRelation( const QString& id )
{
mRelations.remove( name );
mRelations.remove( id );
emit changed();
}

Expand Down
1 change: 1 addition & 0 deletions src/core/qgsrelationmanager.h
Expand Up @@ -105,6 +105,7 @@ class CORE_EXPORT QgsRelationManager : public QObject
QList<QgsRelation> referencedRelations( QgsVectorLayer *layer = 0 ) const;

signals:
/** this signal is emitted when the relations were loaded after reading a project */
void relationsLoaded();

/**
Expand Down

0 comments on commit d279197

Please sign in to comment.