Commit 6a787469 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 9e9b764b
......@@ -41,7 +41,12 @@
\*===========================================================================*/
#include <QtGui>
#if QT_VERSION >= 0x050000
#include <QtWidgets>
#else
#include <QtGui>
#endif
#include <QFileInfo>
#include <QSettings>
......@@ -189,5 +194,8 @@ bool FileViewPlugin::saveObject(int /*_id*/, QString /*_filename*/) {
return true;
}
Q_EXPORT_PLUGIN2( fileviewplugin , FileViewPlugin );
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( fileviewplugin , FileViewPlugin );
#endif
......@@ -60,7 +60,9 @@ class FileViewPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInt
Q_INTERFACES(LoggingInterface)
Q_INTERFACES(BaseInterface)
Q_INTERFACES(ScriptInterface)
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-FileOfv")
#endif
signals:
void openedFile( int _id );
void addEmptyObject( DataType _type, int& _id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment