37 return !search.isEmpty() && candidate.contains( search, Qt::CaseInsensitive );
62 return mUseWithoutPrefix;
void setEnabled(bool enabled)
Sets whether the filter is enabled.
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.
bool useWithoutPrefix() const
Returns true if the filter should be used when no prefix is entered.
QgsLocatorFilter(QObject *parent=nullptr)
Constructor for QgsLocatorFilter.
virtual QgsLocatorFilter::Flags flags() const
Returns flags which specify the filter's behavior.
bool enabled() const
Returns true if the filter is enabled.
virtual void openConfigWidget(QWidget *parent=nullptr)
Opens the configuration widget for the filter (if it has one), with the specified parent widget...
virtual bool hasConfigWidget() const
Should return true if the filter has a configuration widget.