Skip to content

Commit

Permalink
Work around SIP bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdkon authored and wonder-sk committed Jan 6, 2025
1 parent 4d86676 commit 5c973b1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/PyQt6/core/auto_generated/qgsoptional.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Set the payload data

};


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
1 change: 1 addition & 0 deletions python/core/auto_generated/qgsoptional.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Set the payload data

};


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
7 changes: 7 additions & 0 deletions src/core/qgsoptional.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,11 @@ class CORE_EXPORT QgsOptional
T mData;
};

// These typedefs are in place to work around a SIP bug:
// https://github.com/Python-SIP/sip/issues/66
#ifndef SIP_RUN
#include "qgsexpression.h"
typedef QgsOptional<QgsExpression> QgsOptionalQgsExpressionBase;
#endif

#endif // QGSOPTIONAL_H
6 changes: 6 additions & 0 deletions src/core/qgsrange.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ class QgsRange

};

// These typedefs are in place to work around a SIP bug:
// https://github.com/Python-SIP/sip/issues/66
#ifndef SIP_RUN
typedef QgsRange<double> QgsRangedoubleBase;
typedef QgsRange<int> QgsRangeintBase;
#endif

/**
* \brief QgsRange which stores a range of double values.
Expand Down

0 comments on commit 5c973b1

Please sign in to comment.