From 2cc684793ceb29d8600d71564fb38f92c998f588 Mon Sep 17 00:00:00 2001 From: Marco Bernasocchi Date: Sun, 19 May 2013 00:39:45 +0200 Subject: [PATCH] worcarounds to make sip generation work on android --- python/core/composer/qgscomposerscalebar.sip | 2 ++ python/core/qgsclipper.sip | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/python/core/composer/qgscomposerscalebar.sip b/python/core/composer/qgscomposerscalebar.sip index b3f396b0f4a..b766cbd0c0a 100644 --- a/python/core/composer/qgscomposerscalebar.sip +++ b/python/core/composer/qgscomposerscalebar.sip @@ -106,7 +106,9 @@ class QgsComposerScaleBar: QgsComposerItem /**Returns the x - positions of the segment borders (in item coordinates) and the width of the segment*/ +%If (!ANDROID) void segmentPositions( QList >& posWidthList ) const; +%End /**Sets box size suitable to content*/ void adjustBoxSize(); diff --git a/python/core/qgsclipper.sip b/python/core/qgsclipper.sip index f9daff57243..627a6b1a593 100644 --- a/python/core/qgsclipper.sip +++ b/python/core/qgsclipper.sip @@ -38,10 +38,12 @@ class QgsClipper // feature in x and y. The shapeOpen parameter determines whether // the function treats the points as a closed shape (polygon), or as // an open shape (linestring). + +%If (!ANDROID) static void trimFeature( QVector& x, QVector& y, bool shapeOpen ); - +%End static void trimPolygon( QPolygonF& pts, const QgsRectangle& clipRect ); /**Reads a polyline from WKB and clips it to clipExtent