mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Use SIP_FORCE
This commit is contained in:
parent
03faaa3e0f
commit
d03714b0c7
@ -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
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user