Skip to content

Commit

Permalink
no case default and removed unused doc
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Sep 10, 2018
1 parent 0acf991 commit a5fc391
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ writes the ``qmlCode`` into a temporary file

virtual void setFeature( const QgsFeature &feature );

%Docstring
passes the ``feature`` into the context property of the widget
%End

};

Expand Down
6 changes: 4 additions & 2 deletions src/app/qgsattributesformproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,11 @@ QTreeWidgetItem *QgsAttributesFormProperties::loadAttributeEditorTreeItem( QgsAt
newWidget = tree->addItem( parent, itemData );
break;
}
default:
//should not happen
case QgsAttributeEditorElement::AeTypeInvalid:
{
QgsDebugMsg( "Not loading invalid attribute editor type..." );
break;
}
}
return newWidget;
}
Expand Down
1 change: 0 additions & 1 deletion src/gui/editorwidgets/qgsqmlwidgetwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class GUI_EXPORT QgsQmlWidgetWrapper : public QgsWidgetWrapper

public slots:

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

private:
Expand Down

0 comments on commit a5fc391

Please sign in to comment.