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>
9 namespace MessageViewer
10 {
11 class DKIMManagerKeyProxyModel : public QSortFilterProxyModel
12 {
13 public:
14  explicit DKIMManagerKeyProxyModel(QObject *parent = nullptr);
15  ~DKIMManagerKeyProxyModel() override;
16 
17  [[nodiscard]] QString filterText() const;
18  void setFilterText(const QString &newFilterText);
19 
20 protected:
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 
24 private:
25  QString mFilterText;
26 };
27 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.