Skip to content

Commit

Permalink
Custom widgets: make sure config can loaded from the project
Browse files Browse the repository at this point in the history
Apparently sip cannot handle private virtual methods
  • Loading branch information
m-kuhn committed Mar 18, 2015
1 parent 4789c23 commit e41fd54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/gui/editorwidgets/core/qgseditorwidgetfactory.sip
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class QgsEditorWidgetFactory
*/
virtual QVariant createCache( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config );

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

private:
/**
* This method allows disabling this editor widget type for a certain field.
* By default, it returns true for all fields.
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/core/qgseditorwidgetfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ class GUI_EXPORT QgsEditorWidgetFactory
*/
virtual QVariant createCache( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config );

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

private:
/**
* This method allows disabling this editor widget type for a certain field.
* By default, it returns true for all fields.
Expand Down

0 comments on commit e41fd54

Please sign in to comment.