diff --git a/MovePlugin.cc b/MovePlugin.cc index d2e62a5a3d939fb3218632d581e39d2da73f31b5..bd3ba69bf1a1ce86723a45b546f12f79827950c2 100644 --- a/MovePlugin.cc +++ b/MovePlugin.cc @@ -40,7 +40,12 @@ * * \*===========================================================================*/ -#include + +#if QT_VERSION >= 0x050000 + #include +#else + #include +#endif #include "MovePlugin.hh" @@ -2297,5 +2302,7 @@ void MovePlugin::objectDeleted( int _id ){ //-------------------------------------------------------------------------------- -Q_EXPORT_PLUGIN2( moveplugin , MovePlugin ); +#if QT_VERSION < 0x050000 + Q_EXPORT_PLUGIN2( moveplugin , MovePlugin ); +#endif diff --git a/MovePlugin.hh b/MovePlugin.hh index 20d78ede5d6a7e652e0807aa1bccdb0182f36511..72f12dd0ec8e66e35851ee6b52aabaf86be69cdb 100644 --- a/MovePlugin.hh +++ b/MovePlugin.hh @@ -89,6 +89,10 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface, Q_INTERFACES(LoadSaveInterface) Q_INTERFACES(RPCInterface) +#if QT_VERSION >= 0x050000 + Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-Move") +#endif + public: typedef unsigned int SelectionType; static const SelectionType VERTEX = 1; diff --git a/MoveProps.hh b/MoveProps.hh index f76871bcd499106eca05b3d57a8dcf7e7689e2f5..c396cc44b562016c49cfe26b553042a6ea269e7d 100644 --- a/MoveProps.hh +++ b/MoveProps.hh @@ -41,7 +41,13 @@ \*===========================================================================*/ #include "ui_setProps.hh" -#include + +#if QT_VERSION >= 0x050000 + #include +#else + #include +#endif + #include diff --git a/MoveToolbar.hh b/MoveToolbar.hh index 1ac8f6659f88db6400dc8dca3991af442cd82218..a48945fe532f97a4399f378d457efdcb221e4c11 100644 --- a/MoveToolbar.hh +++ b/MoveToolbar.hh @@ -41,7 +41,12 @@ \*===========================================================================*/ #include "ui_moveControls.hh" -#include + +#if QT_VERSION >= 0x050000 + #include +#else + #include +#endif class moveToolbarWidget : public QWidget, public Ui::moveControls {