Skip to content

Commit 10713dd

Browse files
authoredMay 7, 2020
Merge pull request #36240 from troopa81/fix_snaptogridcanvasitem
Fix SIP QgsSnapToGridCanvasItem class declaration
2 parents e441eaa + 985f86f commit 10713dd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎python/gui/auto_generated/qgssnaptogridcanvasitem.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <qgssnaptogridcanvasitem.h>
1515
%End
1616

17-
class QgsSnapToGridCanvasItem : QObject, QgsMapCanvasItem
17+
class QgsSnapToGridCanvasItem : QgsMapCanvasItem
1818
{
1919
%Docstring
2020

‎src/gui/qgssnaptogridcanvasitem.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@
3737
*
3838
* \since QGIS 3.4
3939
*/
40+
#ifndef SIP_RUN
4041
class GUI_EXPORT QgsSnapToGridCanvasItem : public QObject, public QgsMapCanvasItem
4142
{
43+
#else
44+
class GUI_EXPORT QgsSnapToGridCanvasItem : public QgsMapCanvasItem
45+
{
46+
#endif
47+
4248
Q_OBJECT
4349

4450
#ifdef SIP_RUN

0 commit comments

Comments
 (0)
Please sign in to comment.