Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(trying to fix travis build)
  • Loading branch information
olivierdalang committed May 15, 2019
1 parent 5b6dd73 commit 1e5d2f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/gui/auto_generated/qgsadvanceddigitizingfloater.sip.in
Expand Up @@ -59,6 +59,9 @@ Note that the floater may be active but not visible (e.g. if the mouse is not ov
.. versionadded:: 3.8
%End

private:
//! event filter to track mouse position
bool eventFilter( QObject *obj, QEvent *event );
};

/************************************************************************
Expand Down
5 changes: 5 additions & 0 deletions src/gui/qgsadvanceddigitizingfloater.h
Expand Up @@ -118,6 +118,11 @@ 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 );

This comment has been minimized.

Copy link
@3nids

3nids May 15, 2019

Member

rather than using the #ifdef block, you can use SIP_FORCE (here) in the method declaration.

#endif
};

#endif // QGSADVANCEDDIGITIZINGFLOATER_H

0 comments on commit 1e5d2f0

Please sign in to comment.