diff --git a/python/gui/auto_generated/qgshighlight.sip.in b/python/gui/auto_generated/qgshighlight.sip.in index 42ef0e0dfaa4..7156ab80b094 100644 --- a/python/gui/auto_generated/qgshighlight.sip.in +++ b/python/gui/auto_generated/qgshighlight.sip.in @@ -13,7 +13,7 @@ #include %End -class QgsHighlight: QObject, QgsMapCanvasItem +class QgsHighlight : QgsMapCanvasItem { %Docstring A class for highlight features on the map. diff --git a/src/gui/qgshighlight.h b/src/gui/qgshighlight.h index f7eaca7038ad..842dbe48d8d3 100644 --- a/src/gui/qgshighlight.h +++ b/src/gui/qgshighlight.h @@ -53,8 +53,14 @@ class QgsSymbol; * highlight.show() * \endcode */ +#ifndef SIP_RUN class GUI_EXPORT QgsHighlight: public QObject, public QgsMapCanvasItem { +#else +class GUI_EXPORT QgsHighlight : public QgsMapCanvasItem +{ +#endif + Q_OBJECT #ifdef SIP_RUN