no case default and removed unused doc

This commit is contained in:
signedav 2018-09-10 08:16:06 +02:00
parent 0acf991842
commit a5fc39100a
3 changed files with 4 additions and 6 deletions

View File

@ -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
};

View File

@ -472,10 +472,12 @@ 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;
}

View File

@ -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: