File indexing completed on 2024-05-19 05:19:22
0001 /* 0002 This file is part of KJots. 0003 0004 SPDX-FileCopyrightText: 2020 Igor Poboiko <igor.poboiko@gmail.com> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef NOTESORTPROXYMODEL_H 0010 #define NOTESORTPROXYMODEL_H 0011 0012 #include <QSortFilterProxyModel> 0013 0014 class NoteSortProxyModel : public QSortFilterProxyModel 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit NoteSortProxyModel(QObject *parent = nullptr); 0019 protected: 0020 bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; 0021 }; 0022 0023 #endif // NOTESORTPROXYMODEL_H