Messagelib

dkimmanagerkeyproxymodel.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include <QSortFilterProxyModel>
9namespace MessageViewer
10{
11class DKIMManagerKeyProxyModel : public QSortFilterProxyModel
12{
13public:
14 explicit DKIMManagerKeyProxyModel(QObject *parent = nullptr);
15 ~DKIMManagerKeyProxyModel() override;
16
17 [[nodiscard]] QString filterText() const;
18 void setFilterText(const QString &newFilterText);
19
20protected:
21 bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override;
22 bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
23
24private:
25 QString mFilterText;
26};
27}
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.