Navigation Menu

Skip to content

Commit

Permalink
Clarify in the registerMapLayerPropertiesFactory docstring that the o…
Browse files Browse the repository at this point in the history
…wnership of the factory is not transferred
  • Loading branch information
manisandro committed May 30, 2016
1 parent 2297ade commit 3bdbf79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions python/gui/qgisinterface.sip
Expand Up @@ -281,8 +281,9 @@ class QgisInterface : QObject

/** Register a new tab in the vector layer properties dialog.
* @note added in QGIS 2.16
* @see unregisterMapLayerPropertiesFactory()
*/
* @note Ownership of the factory is not transferred, and the factory must
* be unregistered when plugin is unloaded.
* @see unregisterMapLayerPropertiesFactory() */
virtual void registerMapLayerPropertiesFactory( QgsMapLayerPropertiesFactory* factory ) = 0;

/** Unregister a previously registered tab in the vector layer properties dialog.
Expand Down
5 changes: 3 additions & 2 deletions src/app/qgisappinterface.h
Expand Up @@ -290,8 +290,9 @@ class APP_EXPORT QgisAppInterface : public QgisInterface

/** Register a new tab in the vector layer properties dialog.
* @note added in QGIS 2.16
* @see unregisterMapLayerPropertiesFactory()
*/
* @note Ownership of the factory is not transferred, and the factory must
* be unregistered when plugin is unloaded.
* @see unregisterMapLayerPropertiesFactory() */
virtual void registerMapLayerPropertiesFactory( QgsMapLayerPropertiesFactory* factory ) override;

/** Unregister a previously registered tab in the vector layer properties dialog.
Expand Down
5 changes: 3 additions & 2 deletions src/gui/qgisinterface.h
Expand Up @@ -331,8 +331,9 @@ class GUI_EXPORT QgisInterface : public QObject

/** Register a new tab in the vector layer properties dialog.
* @note added in QGIS 2.16
* @see unregisterMapLayerPropertiesFactory()
*/
* @note Ownership of the factory is not transferred, and the factory must
* be unregistered when plugin is unloaded.
* @see unregisterMapLayerPropertiesFactory() */
virtual void registerMapLayerPropertiesFactory( QgsMapLayerPropertiesFactory* factory ) = 0;

/** Unregister a previously registered tab in the vector layer properties dialog.
Expand Down

1 comment on commit 3bdbf79

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Please sign in to comment.