Skip to content

Commit

Permalink
gl: register qvector for qt4
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 28, 2016
1 parent 84a0fb2 commit b0847dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/QtAV/VideoShaderObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define QTAV_VIDEOSHADEROBJECT_H
#include <QtAV/VideoShader.h>
#include <QtCore/QObject>
#include <QtCore/QVector>

namespace QtAV {
// check and auto update properties in shader
Expand Down Expand Up @@ -61,4 +62,12 @@ class Q_AV_EXPORT DynamicShaderObject : public VideoShaderObject
DynamicShaderObject(DynamicShaderObjectPrivate &d, QObject* parent = 0);
};
} //namespace QtAV

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
QT_BEGIN_NAMESPACE
Q_DECLARE_METATYPE(QVector<float>)
Q_DECLARE_METATYPE(QVector<int>)
Q_DECLARE_METATYPE(QVector<unsigned>)
QT_END_NAMESPACE
#endif
#endif //QTAV_VIDEOSHADEROBJECT_H

0 comments on commit b0847dc

Please sign in to comment.