BaseFileFilter Class

class Core::BaseFileFilter

The BaseFileFilter class is a base class for locator filter classes. More...

Header: #include <coreplugin/locator/basefilefilter.h>
Inherits: Core::ILocatorFilter

Reimplemented Public Functions

virtual void accept(Core::LocatorFilterEntry selection, QString *newText, int *selectionStart, int *selectionLength) const override
virtual QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, const QString &origEntry) override
virtual void prepareSearch(const QString &entry) override

Protected Functions

QSharedPointer<Core::BaseFileFilter::Iterator> fileIterator()
void setFileIterator(Core::BaseFileFilter::Iterator *iterator)

Detailed Description

Member Function Documentation

[override virtual] void BaseFileFilter::accept(Core::LocatorFilterEntry selection, QString *newText, int *selectionStart, int *selectionLength) const

Reimplements: ILocatorFilter::accept(Core::LocatorFilterEntry selection, QString *newText, int *selectionStart, int *selectionLength) const.

[protected] QSharedPointer<Core::BaseFileFilter::Iterator> BaseFileFilter::fileIterator()

Returns the file iterator.

See also setFileIterator().

[override virtual] QList<Core::LocatorFilterEntry> BaseFileFilter::matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, const QString &origEntry)

Reimplements: ILocatorFilter::matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, const QString &entry).

[override virtual] void BaseFileFilter::prepareSearch(const QString &entry)

Reimplements: ILocatorFilter::prepareSearch(const QString &entry).

[protected] void BaseFileFilter::setFileIterator(Core::BaseFileFilter::Iterator *iterator)

Takes ownership of the iterator. The previously set iterator might not be deleted until a currently running search is finished.

See also fileIterator().

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.