File indexing completed on 2024-04-28 05:34:17
0001 // SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org> 0002 // 0003 // SPDX-License-Identifier: LGPL-2.1-or-later 0004 0005 #ifndef PASSWORDSORTPROXYMODEL_H_ 0006 #define PASSWORDSORTPROXYMODEL_H_ 0007 0008 #include <QSortFilterProxyModel> 0009 0010 namespace PlasmaPass 0011 { 0012 class PasswordSortProxyModel : public QSortFilterProxyModel 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit PasswordSortProxyModel(QObject *parent = nullptr); 0017 0018 protected: 0019 bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override; 0020 }; 0021 0022 } 0023 0024 #endif