Skip to content

Commit

Permalink
sipify batch
Browse files Browse the repository at this point in the history
python/core/qgspaintenginehack.sip
python/core/qgspainting.sip
python/core/qgspallabeling.sip
python/core/qgspathresolver.sip
python/core/qgspluginlayer.sip
python/core/qgspluginlayerregistry.sip
python/core/qgspointlocator.sip
python/core/qgsproject.sip
python/core/qgsprojectbadlayerhandler.sip
python/core/qgsprojectproperty.sip
python/core/qgsprojectversion.sip
python/core/qgssnappingconfig.sip
  • Loading branch information
3nids committed May 18, 2017
1 parent 9f49e40 commit 68b990b
Show file tree
Hide file tree
Showing 23 changed files with 2,147 additions and 1,158 deletions.
12 changes: 0 additions & 12 deletions python/auto_sip.blacklist
@@ -1,18 +1,6 @@
core/conversions.sip
core/qgsexception.sip
core/qgis.sip
core/qgspaintenginehack.sip
core/qgspainting.sip
core/qgspallabeling.sip
core/qgspathresolver.sip
core/qgspluginlayer.sip
core/qgspluginlayerregistry.sip
core/qgspointlocator.sip
core/qgsproject.sip
core/qgsprojectbadlayerhandler.sip
core/qgsprojectproperty.sip
core/qgssnappingconfig.sip
core/qgsprojectversion.sip
core/qgspropertycollection.sip
core/qgspythonrunner.sip
core/qgsrange.sip
Expand Down
8 changes: 4 additions & 4 deletions python/core/qgsfeaturerequest.sip
Expand Up @@ -227,23 +227,23 @@ class QgsFeatureRequest
:rtype: list of QgsFeatureRequest.OrderByClause
%End

void save( QDomElement &elem ) const;
void save( QDomElement &elem ) const;
%Docstring
Serialize to XML
%End

void load( const QDomElement &elem );
void load( const QDomElement &elem );
%Docstring
Deserialize from XML
%End

QSet<QString> usedAttributes() const;
QSet<QString> usedAttributes() const;
%Docstring
Returns a set of used attributes
:rtype: set of str
%End

QString dump() const;
QString dump() const;
%Docstring
Dumps the content to an SQL equivalent syntax
:rtype: str
Expand Down
24 changes: 22 additions & 2 deletions python/core/qgspaintenginehack.sip
@@ -1,10 +1,30 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgspaintenginehack.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsPaintEngineHack : QPaintEngine
{
%TypeHeaderCode
#include <qgspaintenginehack.h>
%Docstring
Hack to workaround Qt #5114 by disabling PatternTransform
%End

%TypeHeaderCode
#include "qgspaintenginehack.h"
%End
public:
void fixFlags();
static void fixEngineFlags( QPaintEngine *engine );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgspaintenginehack.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
40 changes: 33 additions & 7 deletions python/core/qgspainting.sip
@@ -1,14 +1,26 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgspainting.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsPainting
{
%TypeHeaderCode
#include <qgspainting.h>
%Docstring
Misc painting enums and functions.

.. versionadded:: 3.0
%End

%TypeHeaderCode
#include "qgspainting.h"
%End
public:

/** Blending modes enum defining the available composition modes that can
* be used when rendering a layer
*/
enum BlendMode
{
BlendNormal,
Expand Down Expand Up @@ -37,9 +49,23 @@ class QgsPainting
BlendXor,
};

//! Returns a QPainter::CompositionMode corresponding to a BlendMode
static QPainter::CompositionMode getCompositionMode( QgsPainting::BlendMode blendMode );
//! Returns a BlendMode corresponding to a QPainter::CompositionMode
%Docstring
Returns a QPainter.CompositionMode corresponding to a BlendMode
:rtype: QPainter.CompositionMode
%End
static QgsPainting::BlendMode getBlendModeEnum( QPainter::CompositionMode blendMode );
%Docstring
Returns a BlendMode corresponding to a QPainter.CompositionMode
:rtype: QgsPainting.BlendMode
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgspainting.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit 68b990b

Please sign in to comment.