Skip to content
Snippets Groups Projects
Commit 542905ad authored by Matthias Möller's avatar Matthias Möller
Browse files

- adding qt5 pluginsystem

- adding qt5 headers

refs #1359

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17080 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e3d3dafa
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,13 @@
* *
\*===========================================================================*/
#if QT_VERSION >= 0x050000
#include <QtWidgets>
#else
#include <QtGui>
#endif
#include <QFileInfo>
#include <QSettings>
......@@ -84,6 +90,7 @@ int FileScriptPlugin::loadObject(QString _filename)
return 0;
};
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( filescriptplugin , FileScriptPlugin );
#endif
......@@ -63,6 +63,10 @@ class FileScriptPlugin : public QObject, BaseInterface, FileInterface, LoadSaveI
Q_INTERFACES(ScriptInterface)
Q_INTERFACES(RPCInterface)
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-FileScript")
#endif
signals:
// log Interface
void log(Logtype _type, QString _message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment