Skip to content
Permalink
Browse files

use Q_ENUM for QgsLocator::Priority

  • Loading branch information
3nids committed Jun 20, 2018
1 parent 4790747 commit f749c521a9c13b56672a5612336ee7a8e37e73e1
Showing with 6 additions and 0 deletions.
  1. +4 −0 python/core/auto_additions/qgslocatorfilter.py
  2. +2 −0 src/core/locator/qgslocatorfilter.h
@@ -0,0 +1,4 @@
# The following has been generated automatically from src/core/locator/qgslocatorfilter.h
QgsLocatorFilter.Priority.baseClass = QgsLocatorFilter
QgsLocatorFilter.Flags.baseClass = QgsLocatorFilter
Flags = QgsLocatorFilter # dirty hack since SIP seems to introduce the flags in module
@@ -117,13 +117,15 @@ class CORE_EXPORT QgsLocatorFilter : public QObject
Low, //!< Low priority
Lowest //!< Lowest priority
};
Q_ENUM( Priority )

//! Flags for locator behavior.
enum Flag
{
FlagFast = 1 << 1, //!< Filter finds results quickly and can be safely run in the main thread
};
Q_DECLARE_FLAGS( Flags, Flag )
Q_FLAG( Flags )

/**
* Constructor for QgsLocatorFilter.

0 comments on commit f749c52

Please sign in to comment.
You can’t perform that action at this time.