TextAddonsCore::SortFilterProxyModelBase Class

class TextAddonsCore::SortFilterProxyModelBase
Header: #include <TextAddonsCore/SortFilterProxyModelBase>
CMake: find_package(KF6TextAddonsCore REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextAddonsCore)
Inherits: QSortFilterProxyModel

Public Functions

SortFilterProxyModelBase(QObject *parent = nullptr)
virtual ~SortFilterProxyModelBase() override
bool contains(const QString &string) const
void setFilterString(const QString &string)

Protected Variables

QString mFilterString

Detailed Description

Member Function Documentation

[explicit] SortFilterProxyModelBase::SortFilterProxyModelBase(QObject *parent = nullptr)

Constructor for SortFilterProxyModelBase parent The parent object

[override virtual noexcept] SortFilterProxyModelBase::~SortFilterProxyModelBase()

Destructor for SortFilterProxyModelBase

bool SortFilterProxyModelBase::contains(const QString &string) const

Returns true if the normalized string contains the filter string, or if the filter string is empty.

void SortFilterProxyModelBase::setFilterString(const QString &string)

Sets the filter string to string. The string is normalized before use.

Member Variable Documentation

QString SortFilterProxyModelBase::mFilterString

mFilterString