Skip to content

Commit e41fd54

Browse files
committed
Custom widgets: make sure config can loaded from the project
Apparently sip cannot handle private virtual methods
1 parent 4789c23 commit e41fd54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/gui/editorwidgets/core/qgseditorwidgetfactory.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ class QgsEditorWidgetFactory
122122
*/
123123
virtual QVariant createCache( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config );
124124

125-
private:
126125
/**
127126
* Read the config from an XML file and map it to a proper {@link QgsEditorWidgetConfig}.
128127
*
@@ -134,6 +133,7 @@ class QgsEditorWidgetFactory
134133
*/
135134
virtual QgsEditorWidgetConfig readConfig( const QDomElement& configElement, QgsVectorLayer* layer, int fieldIdx );
136135

136+
private:
137137
/**
138138
* This method allows disabling this editor widget type for a certain field.
139139
* By default, it returns true for all fields.

src/gui/editorwidgets/core/qgseditorwidgetfactory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ class GUI_EXPORT QgsEditorWidgetFactory
136136
*/
137137
virtual QVariant createCache( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config );
138138

139-
private:
140139
/**
141140
* Read the config from an XML file and map it to a proper {@link QgsEditorWidgetConfig}.
142141
*
@@ -148,6 +147,7 @@ class GUI_EXPORT QgsEditorWidgetFactory
148147
*/
149148
virtual QgsEditorWidgetConfig readConfig( const QDomElement& configElement, QgsVectorLayer* layer, int fieldIdx );
150149

150+
private:
151151
/**
152152
* This method allows disabling this editor widget type for a certain field.
153153
* By default, it returns true for all fields.

0 commit comments

Comments
 (0)