Skip to content

Commit

Permalink
Add missing /Factory/ annotation
Browse files Browse the repository at this point in the history
(cherry picked from commit 19ef2f9)
  • Loading branch information
nyalldawson committed Nov 6, 2018
1 parent 85aaf7e commit e3c4188
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
Expand Up @@ -74,7 +74,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
Expand Up @@ -19,6 +19,7 @@
#include <QStringList>

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

class QgsLayerItem;
class QgsLayerTreeNode;
Expand Down Expand Up @@ -90,7 +91,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 e3c4188

Please sign in to comment.