summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_collecting_plugins/plugin.cpp
blob: f844d86c4ef1eb8d08cc7b49caeb596b3b304c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <qimageiohandler.h>

class TestImagePlugin : public QImageIOPlugin
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface")
public:
    Capabilities capabilities(QIODevice *, const QByteArray &) const override { return {}; }
    QImageIOHandler *create(QIODevice *, const QByteArray & = QByteArray()) const override
    {
        return nullptr;
    }
};

#include "plugin.moc"