From 14882058ba8420a31d2cd828cb09cc7c5fade542 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 15 May 2017 07:34:14 +1000 Subject: [PATCH] Sipify update --- .../core/qgseditorwidgetregistry.sip | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/python/gui/editorwidgets/core/qgseditorwidgetregistry.sip b/python/gui/editorwidgets/core/qgseditorwidgetregistry.sip index db6d3c0c8cf..bfc37b7fc54 100644 --- a/python/gui/editorwidgets/core/qgseditorwidgetregistry.sip +++ b/python/gui/editorwidgets/core/qgseditorwidgetregistry.sip @@ -13,7 +13,10 @@ class QgsEditorWidgetRegistry : QObject { %Docstring - This class manages all known edit widget factories + This class manages all known edit widget factories. + + QgsEditorWidgetRegistry is not usually directly created, but rather accessed through + QgsGui.editorWidgetRegistry(). %End %TypeHeaderCode @@ -21,7 +24,13 @@ class QgsEditorWidgetRegistry : QObject %End public: - static void initEditors( QgsMapCanvas *mapCanvas = 0, QgsMessageBar *messageBar = 0 ); + QgsEditorWidgetRegistry(); +%Docstring + Constructor for QgsEditorWidgetRegistry. QgsEditorWidgetRegistry is not usually directly created, but rather accessed through + QgsGui.editorWidgetRegistry(). +%End + + void initEditors( QgsMapCanvas *mapCanvas = 0, QgsMessageBar *messageBar = 0 ); %Docstring Registers all the default widgets. Only call this once on startup of an application. @@ -162,9 +171,6 @@ class QgsEditorWidgetRegistry : QObject \param plugin The plugin (ownership is transferred) %End - protected: - QgsEditorWidgetRegistry(); - }; /************************************************************************