Skip to content

Commit

Permalink
Add missing /Factory/ annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 5, 2018
1 parent 82baff8 commit 19ef2f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion python/core/auto_generated/qgsmimedatautils.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ Gets mesh layer from uri if possible, otherwise returns 0 and error is set
};
typedef QList<QgsMimeDataUtils::Uri> UriList;

static QMimeData *encodeUriList( const UriList &layers );
static QMimeData *encodeUriList( const UriList &layers ) /Factory/;
%Docstring
Encodes a URI list to a new QMimeData object.
%End

static bool isUriList( const QMimeData *data );

Expand Down
6 changes: 5 additions & 1 deletion src/core/qgsmimedatautils.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <QStringList>

#include "qgis_core.h"
#include "qgis_sip.h"

class QgsLayerItem;
class QgsLayerTreeNode;
Expand Down Expand Up @@ -98,7 +99,10 @@ class CORE_EXPORT QgsMimeDataUtils
};
typedef QList<QgsMimeDataUtils::Uri> UriList;

static QMimeData *encodeUriList( const UriList &layers );
/**
* Encodes a URI list to a new QMimeData object.
*/
static QMimeData *encodeUriList( const UriList &layers ) SIP_FACTORY;

static bool isUriList( const QMimeData *data );

Expand Down

0 comments on commit 19ef2f9

Please sign in to comment.