Advertisement
Guest User

Untitled

a guest
Mar 9th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #ifndef ARGBPLUGIN_H
  2. #define ARGBPLUGIN_H
  3.  
  4. #include <QImageIOPlugin>
  5.  
  6.  
  7. class ArgbPlugin : public QImageIOPlugin
  8. {
  9.     Q_OBJECT
  10. #if QT_VERSION >= 0x050000
  11.     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ARGB.json")
  12. #endif // QT_VERSION >= 0x050000
  13.  
  14. public:
  15.     ArgbPlugin(QObject *parent = 0);
  16.  
  17.     QStringList keys() const;
  18.             Capabilities capabilities(QIODevice *device,
  19.                          const QByteArray &format) const;
  20.             QImageIOHandler *create(QIODevice *device,
  21.                              const QByteArray &format = QByteArray()) const;
  22. };
  23.  
  24. #endif // ARGBPLUGIN_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement