File indexing completed on 2024-11-24 04:50:43

0001 // SPDX-FileCopyrightText: 2021 Claudio Cambra <claudio.cambra@gmail.com>
0002 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
0003 //
0004 // SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 #pragma once
0007 
0008 #include <Akonadi/CollectionFilterProxyModel>
0009 
0010 class SortedCollectionProxModel : public Akonadi::CollectionFilterProxyModel
0011 {
0012 public:
0013     explicit SortedCollectionProxModel(QObject *parent = nullptr);
0014 
0015 protected:
0016     bool lessThan(const QModelIndex &sourceLeft, const QModelIndex &sourceRight) const override;
0017 };