TextAutoGenerateText::TextAutoGenerateHistorySortFilterProxyModel Class

class TextAutoGenerateText::TextAutoGenerateHistorySortFilterProxyModel

The TextAutoGenerateHistorySortFilterProxyModel class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateHistorySortFilterProxyModel>

Public Functions

TextAutoGenerateHistorySortFilterProxyModel(QObject *parent = nullptr)
virtual ~TextAutoGenerateHistorySortFilterProxyModel() override
QList<QByteArray> filterTags() const
void setFilterTags(const QList<QByteArray> &newFilterTags)
void setShowArchived(bool newShowArchived)
bool showArchived() const

Reimplemented Protected Functions

virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const override

Detailed Description

Member Function Documentation

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

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

[override virtual protected] bool TextAutoGenerateHistorySortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const

QList<QByteArray> TextAutoGenerateHistorySortFilterProxyModel::filterTags() const

filterTags Returns the tag identifiers a chat must have one of to be shown.

See also setFilterTags().

[override virtual protected] bool TextAutoGenerateHistorySortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const

void TextAutoGenerateHistorySortFilterProxyModel::setFilterTags(const QList<QByteArray> &newFilterTags)

setFilterTags Only shows the chats which have at least one of newFilterTags. An empty list shows every chat.

See also filterTags().

void TextAutoGenerateHistorySortFilterProxyModel::setShowArchived(bool newShowArchived)

See also showArchived().

bool TextAutoGenerateHistorySortFilterProxyModel::showArchived() const

See also setShowArchived().