Renamed qoi.h to qoi_p.h

This commit is contained in:
Mirco Miranda
2023-08-12 23:47:29 +02:00
parent 4c3ade04dd
commit 7a0d95af92
2 changed files with 6 additions and 6 deletions

37
src/imageformats/qoi_p.h Normal file
View File

@ -0,0 +1,37 @@
/*
This file is part of the KDE project
SPDX-FileCopyrightText: 2023 Ernest Gupik <ernestgupik@wp.pl>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KIMG_QOI_P_H
#define KIMG_QOI_P_H
#include <QImageIOPlugin>
class QOIHandler : public QImageIOHandler
{
public:
QOIHandler();
bool canRead() const override;
bool read(QImage *image) override;
bool supportsOption(QImageIOHandler::ImageOption option) const override;
QVariant option(QImageIOHandler::ImageOption option) const override;
static bool canRead(QIODevice *device);
};
class QOIPlugin : public QImageIOPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "qoi.json")
public:
Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
};
#endif // KIMG_QOI_P_H