38 return !search.isEmpty() && candidate.contains( search, Qt::CaseInsensitive );
63 return mUseWithoutPrefix;
76 if ( mActivePrefifx.isNull() )
79 return mActivePrefifx;
QString activePrefix() const
Returns the prefix in use in the locator is entered.
virtual bool hasConfigWidget() const
Should return true if the filter has a configuration widget.
virtual QgsLocatorFilter::Flags flags() const
Returns flags which specify the filter's behavior.
void setEnabled(bool enabled)
Sets whether the filter is enabled.
MessageLevel
Level for messages This will be used both for message log and message bar in application.
static bool stringMatches(const QString &candidate, const QString &search)
Tests a candidate string to see if it should be considered a match for a specified search string...
void setUseWithoutPrefix(bool useWithoutPrefix)
Sets whether the filter should be used when no prefix is entered.
void logMessage(const QString &message, Qgis::MessageLevel level=Qgis::Info)
Logs a message to the log panel.
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::Warning, bool notifyUser=true)
Adds a message to the log instance (and creates it if necessary).
bool enabled() const
Returns true if the filter is enabled.
QgsLocatorFilter(QObject *parent=nullptr)
Constructor for QgsLocatorFilter.
void setActivePrefix(const QString &activePrefix)
Sets the prefix as being used by the locator.
virtual QString name() const =0
Returns the unique name for the filter.
bool useWithoutPrefix() const
Returns true if the filter should be used when no prefix is entered.
virtual void openConfigWidget(QWidget *parent=nullptr)
Opens the configuration widget for the filter (if it has one), with the specified parent widget...
virtual QString prefix() const
Returns the search prefix character(s) for this filter.