From 76fb51bd8e7f0c90bc376bdd16c216e6e35b6c8f Mon Sep 17 00:00:00 2001 From: Ivan Romanov Date: Fri, 23 Aug 2013 12:51:01 +0600 Subject: [PATCH] [captchaforms] qt5 migration --- generic/captchaformsplugin/captchaformsplugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generic/captchaformsplugin/captchaformsplugin.cpp b/generic/captchaformsplugin/captchaformsplugin.cpp index a80996f6..9219867f 100644 --- a/generic/captchaformsplugin/captchaformsplugin.cpp +++ b/generic/captchaformsplugin/captchaformsplugin.cpp @@ -53,6 +53,9 @@ class CaptchaFormsPlugin : public QObject, public PsiPlugin, public OptionAccess public StanzaFilter, public StanzaSender, public AccountInfoAccessor, public ApplicationInfoAccessor { Q_OBJECT +#ifdef HAVE_QT5 + Q_PLUGIN_METADATA(IID "com.psi-plus.CaptchaFormsPlugin") +#endif Q_INTERFACES(PsiPlugin OptionAccessor PluginInfoProvider EventCreator StanzaFilter StanzaSender AccountInfoAccessor ApplicationInfoAccessor) public: CaptchaFormsPlugin(); @@ -100,8 +103,9 @@ private slots: void loaderError(const QString& id); }; +#ifndef HAVE_QT5 Q_EXPORT_PLUGIN(CaptchaFormsPlugin); - +#endif CaptchaFormsPlugin::CaptchaFormsPlugin() : psiOptions(0)