diff options
| author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2017-10-09 19:33:15 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-12 20:53:08 +0300 |
| commit | 94cfb42222c0d5e17f480a3aa2044ed7657cf082 (patch) | |
| tree | 18df271c5823935b681f29fc71e673e8d152b8b4 /test cases/frameworks/4 qt/plugin/plugin.h | |
| parent | 79b850dfcb42c39874b2592fb9d93553d42ee5c8 (diff) | |
| download | meson-94cfb42222c0d5e17f480a3aa2044ed7657cf082.tar.gz | |
Fixes Qt4 plugin build and mixed Qt4/Qt5 tests builds.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Diffstat (limited to 'test cases/frameworks/4 qt/plugin/plugin.h')
| -rw-r--r-- | test cases/frameworks/4 qt/plugin/plugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/frameworks/4 qt/plugin/plugin.h b/test cases/frameworks/4 qt/plugin/plugin.h index 1138f412e..c8e14e463 100644 --- a/test cases/frameworks/4 qt/plugin/plugin.h +++ b/test cases/frameworks/4 qt/plugin/plugin.h @@ -5,7 +5,10 @@ class plugin1:public QObject,public PluginInterface { Q_OBJECT Q_INTERFACES(PluginInterface) +#if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "demo.PluginInterface" FILE "plugin.json") +#endif + public: QString getResource() override; }; |
