Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
worcarounds to make sip generation work on android
  • Loading branch information
mbernasocchi authored and dakcarto committed Sep 9, 2013
1 parent 10fc681 commit 2cc6847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/core/composer/qgscomposerscalebar.sip
Expand Up @@ -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<QPair<double, double> >& posWidthList ) const;
%End

/**Sets box size suitable to content*/
void adjustBoxSize();
Expand Down
4 changes: 3 additions & 1 deletion python/core/qgsclipper.sip
Expand Up @@ -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<double>& x,
QVector<double>& y,
bool shapeOpen );

%End
static void trimPolygon( QPolygonF& pts, const QgsRectangle& clipRect );

/**Reads a polyline from WKB and clips it to clipExtent
Expand Down

0 comments on commit 2cc6847

Please sign in to comment.