Use SIP_FORCE

This commit is contained in:
Matthias Kuhn 2019-05-19 09:34:33 +02:00
parent 03faaa3e0f
commit d03714b0c7
2 changed files with 10 additions and 9 deletions

View File

@ -60,8 +60,15 @@ Note that the floater may be active but not visible (e.g. if the mouse is not ov
%End
private:
//! event filter to track mouse position
bool eventFilter( QObject *obj, QEvent *event );
virtual bool eventFilter( QObject *obj, QEvent *event );
%Docstring
event filter to track mouse position
.. note::
defined as private in Python bindings
%End
};
/************************************************************************

View File

@ -102,7 +102,7 @@ class GUI_EXPORT QgsAdvancedDigitizingFloater : public QWidget, private Ui::QgsA
* event filter to track mouse position
* \note defined as private in Python bindings
*/
bool eventFilter( QObject *obj, QEvent *event ) override SIP_SKIP;
bool eventFilter( QObject *obj, QEvent *event ) override SIP_FORCE;
/**
* Move the widget to a new cursor position. A hard-coded offset will be added.
@ -117,12 +117,6 @@ class GUI_EXPORT QgsAdvancedDigitizingFloater : public QWidget, private Ui::QgsA
//! Whether the floater is enabled.
bool mActive = false;
private:
#ifdef SIP_RUN
//! event filter to track mouse position
bool eventFilter( QObject *obj, QEvent *event );
#endif
};
#endif // QGSADVANCEDDIGITIZINGFLOATER_H