-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnhplugin.h
More file actions
19 lines (16 loc) · 716 Bytes
/
Copy pathnhplugin.h
File metadata and controls
19 lines (16 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifdef __cplusplus
#include <QImageIOHandler>
#include <QObject>
#include <QtPlugin>
// we make it a fake image plugin so we can have Qt automatically load it
// without needing extra configuration (e.g. LD_PRELOAD, -plugin arg, etc).
// note: this class does not need to be renamed when using NickelHook, as
// duplicate classes don't matter for separate plugins
class NHPlugin : public QImageIOPlugin {
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "nhplugin.json")
public:
Capabilities capabilities(QIODevice*, QByteArray const&) const { return 0; };
QImageIOHandler *create(QIODevice*, QByteArray const& = QByteArray()) const { return 0; };
};
#endif