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
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:06:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.