1/* -*- C++ -*-
2 This file is part of ThreadWeaver.
3
4 SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef IMAGELISTFILTER_H
10#define IMAGELISTFILTER_H
11
12#include "Image.h"
13#include <QSortFilterProxyModel>
14
15class ImageListFilter : public QSortFilterProxyModel
16{
17 Q_OBJECT
18public:
19 explicit ImageListFilter(Image::Steps step, QObject *parent = nullptr);
20 bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
21
22private:
23 Image::Steps m_step;
24};
25#endif // IMAGELISTFILTER_H
26

source code of threadweaver/examples/ThumbNailer/ImageListFilter.h