Skip to content

Commit a5fc391

Browse files
committedSep 10, 2018
no case default and removed unused doc
1 parent 0acf991 commit a5fc391

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed
 

‎python/gui/auto_generated/editorwidgets/qgsqmlwidgetwrapper.sip.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ writes the ``qmlCode`` into a temporary file
5252

5353
virtual void setFeature( const QgsFeature &feature );
5454

55-
%Docstring
56-
passes the ``feature`` into the context property of the widget
57-
%End
5855

5956
};
6057

‎src/app/qgsattributesformproperties.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,11 @@ QTreeWidgetItem *QgsAttributesFormProperties::loadAttributeEditorTreeItem( QgsAt
472472
newWidget = tree->addItem( parent, itemData );
473473
break;
474474
}
475-
default:
476-
//should not happen
475+
case QgsAttributeEditorElement::AeTypeInvalid:
476+
{
477+
QgsDebugMsg( "Not loading invalid attribute editor type..." );
477478
break;
479+
}
478480
}
479481
return newWidget;
480482
}

‎src/gui/editorwidgets/qgsqmlwidgetwrapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class GUI_EXPORT QgsQmlWidgetWrapper : public QgsWidgetWrapper
5555

5656
public slots:
5757

58-
//! passes the \a feature into the context property of the widget
5958
void setFeature( const QgsFeature &feature ) override;
6059

6160
private:

0 commit comments

Comments
 (0)
Please sign in to comment.