Skip to content

Commit 455f973

Browse files
committedApr 28, 2017
Sipify QgsTextRenderer
1 parent debe109 commit 455f973

File tree

3 files changed

+1111
-831
lines changed

3 files changed

+1111
-831
lines changed
 

‎python/auto_sip.blacklist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ core/qgsstatisticalsummary.sip
9494
core/qgsstringstatisticalsummary.sip
9595
core/qgsstringutils.sip
9696
core/qgstaskmanager.sip
97-
core/qgstextrenderer.sip
9897
core/qgstolerance.sip
9998
core/qgstracer.sip
10099
core/qgstrackedvectorlayertools.sip

‎python/core/qgstextrenderer.sip

Lines changed: 1104 additions & 824 deletions
Large diffs are not rendered by default.

‎src/core/qgstextrenderer.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef QGSTEXTRENDERER_H
1818
#define QGSTEXTRENDERER_H
1919

20+
#include "qgis.h"
2021
#include "qgis_core.h"
2122
#include "qgsmapunitscale.h"
2223
#include "qgsunittypes.h"
@@ -202,7 +203,7 @@ class CORE_EXPORT QgsTextBufferSettings
202203
* \param effect paint effect. Ownership is transferred to the buffer settings.
203204
* \see paintEffect()
204205
*/
205-
void setPaintEffect( QgsPaintEffect *effect );
206+
void setPaintEffect( QgsPaintEffect *effect SIP_TRANSFER );
206207

207208
private:
208209

@@ -587,7 +588,7 @@ class CORE_EXPORT QgsTextBackgroundSettings
587588
* \param effect paint effect. Ownership is transferred to the background settings.
588589
* \see paintEffect()
589590
*/
590-
void setPaintEffect( QgsPaintEffect *effect );
591+
void setPaintEffect( QgsPaintEffect *effect SIP_TRANSFER );
591592

592593
/** Reads settings from a layer's custom properties.
593594
* \param layer source vector layer
@@ -899,7 +900,7 @@ class CORE_EXPORT QgsTextFormat
899900
/** Returns a reference to the text buffer settings.
900901
* \see setBuffer()
901902
*/
902-
QgsTextBufferSettings buffer() const { return mBufferSettings; }
903+
SIP_SKIP QgsTextBufferSettings buffer() const { return mBufferSettings; }
903904

904905
/** Sets the text's buffer settings.
905906
* \param bufferSettings buffer settings
@@ -915,9 +916,9 @@ class CORE_EXPORT QgsTextFormat
915916
/** Returns a reference to the text background settings.
916917
* \see setBackground()
917918
*/
918-
QgsTextBackgroundSettings background() const { return mBackgroundSettings; }
919+
SIP_SKIP QgsTextBackgroundSettings background() const { return mBackgroundSettings; }
919920

920-
/** Sets the text's background settings.
921+
/** Sets the text's background settings.q
921922
* \param backgroundSettings background settings
922923
* \see background()
923924
*/
@@ -931,7 +932,7 @@ class CORE_EXPORT QgsTextFormat
931932
/** Returns a reference to the text drop shadow settings.
932933
* \see setShadow()
933934
*/
934-
QgsTextShadowSettings shadow() const { return mShadowSettings; }
935+
SIP_SKIP QgsTextShadowSettings shadow() const { return mShadowSettings; }
935936

936937
/** Sets the text's drop shadow settings.
937938
* \param shadowSettings shadow settings

0 commit comments

Comments
 (0)
Please sign in to comment.