26 qDeleteAll( mSources );
36 if ( !mSources.contains( profileSource ) )
37 mSources.append( profileSource );
42 const int index = mSources.indexOf( profileSource );
44 delete mSources.takeAt( index );
Interface for classes which can generate elevation profiles.
~QgsProfileSourceRegistry()
void registerProfileSource(QgsAbstractProfileSource *source)
Registers a profile source and takes ownership of it.
QList< QgsAbstractProfileSource * > profileSources() const
Returns a list of registered profile sources.
void unregisterProfileSource(QgsAbstractProfileSource *source)
Unregisters a profile source and destroys its instance.
QgsProfileSourceRegistry()
Constructor - creates a registry of profile sources.