Skip to content

Commit f749c52

Browse files
committedJun 20, 2018
use Q_ENUM for QgsLocator::Priority
1 parent 4790747 commit f749c52

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# The following has been generated automatically from src/core/locator/qgslocatorfilter.h
2+
QgsLocatorFilter.Priority.baseClass = QgsLocatorFilter
3+
QgsLocatorFilter.Flags.baseClass = QgsLocatorFilter
4+
Flags = QgsLocatorFilter # dirty hack since SIP seems to introduce the flags in module

‎src/core/locator/qgslocatorfilter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ class CORE_EXPORT QgsLocatorFilter : public QObject
117117
Low, //!< Low priority
118118
Lowest //!< Lowest priority
119119
};
120+
Q_ENUM( Priority )
120121

121122
//! Flags for locator behavior.
122123
enum Flag
123124
{
124125
FlagFast = 1 << 1, //!< Filter finds results quickly and can be safely run in the main thread
125126
};
126127
Q_DECLARE_FLAGS( Flags, Flag )
128+
Q_FLAG( Flags )
127129

128130
/**
129131
* Constructor for QgsLocatorFilter.

0 commit comments

Comments
 (0)
Please sign in to comment.