Commit 16b98d47 authored by Matthias Möller's avatar Matthias Möller

- 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 2aa69c05
......@@ -40,7 +40,13 @@
* *
\*===========================================================================*/
#include <QtGui>
#if QT_VERSION >= 0x050000
#include <QtWidgets>
#else
#include <QtGui>
#endif
#include <QFileInfo>
#include <QSettings>
#include <QPushButton>
......@@ -1451,5 +1457,8 @@ void FileOFFPlugin::slotSaveDefault() {
OpenFlipperSettings().setValue( "FileOff/Save/TexCoords", saveTexCoords_->isChecked() );
}
Q_EXPORT_PLUGIN2( fileoffplugin , FileOFFPlugin );
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( fileoffplugin , FileOFFPlugin );
#endif
......@@ -73,7 +73,9 @@ class FileOFFPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
Q_INTERFACES(BaseInterface)
Q_INTERFACES(ScriptInterface)
Q_INTERFACES(StatusbarInterface)
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-FileOFF")
#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