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
15/*!
16 * \class ImageListFilter
17 *
18 * \inmodule ThreadWeaver
19 */
20class ImageListFilter : public QSortFilterProxyModel
21{
22 Q_OBJECT
23public:
24 /*!
25 */
26 explicit ImageListFilter(Image::Steps step, QObject *parent = nullptr);
27 bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
28
29private:
30 Image::Steps m_step;
31};
32#endif // IMAGELISTFILTER_H
33

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