// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef EXTRAFILTERSPLUGIN_H #define EXTRAFILTERSPLUGIN_H //! [0] #include #include #include #include #include class ExtraFiltersPlugin : public QObject, public FilterInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples.PlugAndPaint.FilterInterface" FILE "extrafilters.json") Q_INTERFACES(FilterInterface) public: QStringList filters() const override; QImage filterImage(const QString &filter, const QImage &image, QWidget *parent) override; }; //! [0] #endif