Skip to content

Commit

Permalink
Use SIP_FORCE
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 19, 2019
1 parent 03faaa3 commit d03714b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
11 changes: 9 additions & 2 deletions python/gui/auto_generated/qgsadvanceddigitizingfloater.sip.in
Expand Up @@ -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
};

/************************************************************************
Expand Down
8 changes: 1 addition & 7 deletions src/gui/qgsadvanceddigitizingfloater.h
Expand Up @@ -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.
Expand All @@ -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

0 comments on commit d03714b

Please sign in to comment.