diff --git a/SkeletonObjectInfoPlugin.cc b/SkeletonObjectInfoPlugin.cc index d62712f546980ce89c5fbeaee5d7a1794abdf01f..d3987c00c87f1bbef28f1c3ef633c9673eedbd80 100644 --- a/SkeletonObjectInfoPlugin.cc +++ b/SkeletonObjectInfoPlugin.cc @@ -49,7 +49,13 @@ //== INCLUDES ================================================================= -#include + +#if QT_VERSION >= 0x050000 + #include +#else + #include +#endif + #include "SkeletonObjectInfoPlugin.hh" @@ -227,7 +233,7 @@ void InfoSkeletonObjectPlugin::slotInformationRequested(const QPoint _clickedPoi } } - -Q_EXPORT_PLUGIN2( infoskeletonobjectplugin , InfoSkeletonObjectPlugin ); - +#if QT_VERSION < 0x050000 + Q_EXPORT_PLUGIN2( infoskeletonobjectplugin , InfoSkeletonObjectPlugin ); +#endif diff --git a/SkeletonObjectInfoPlugin.hh b/SkeletonObjectInfoPlugin.hh index 65b2d78b9334d18d7da6bf58d79ecf5fe049d7a2..a93d1876dfb7763cabf2edda2b6dca6507c19283 100644 --- a/SkeletonObjectInfoPlugin.hh +++ b/SkeletonObjectInfoPlugin.hh @@ -79,6 +79,10 @@ class InfoSkeletonObjectPlugin : public QObject, BaseInterface, InformationInter Q_INTERFACES(LoggingInterface) Q_INTERFACES(StatusbarInterface) +#if QT_VERSION >= 0x050000 + Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-SkeletonObjectInfo") +#endif + signals: diff --git a/infoDialog.hh b/infoDialog.hh index 013b66721586b93a63884ef677a1100b186e701b..550ef98c719e2ae36a5fec0131286048b5d27a99 100644 --- a/infoDialog.hh +++ b/infoDialog.hh @@ -41,7 +41,12 @@ \*===========================================================================*/ #include "ui_infoSkeletonWidget.hh" -#include + +#if QT_VERSION >= 0x050000 + #include +#else + #include +#endif class InfoDialog : public QDialog, public Ui::InfoWidget {