diff --git a/DiceComputation/Widgets/CMakeLists.txt b/DiceComputation/Widgets/CMakeLists.txt index dc70d05..f039c1b 100644 --- a/DiceComputation/Widgets/CMakeLists.txt +++ b/DiceComputation/Widgets/CMakeLists.txt @@ -21,7 +21,7 @@ set(${KIT}_UI_SRCS ) set(${KIT}_RESOURCES - ../Resources/UI/qSlicer${MODULE_NAME}LabelMapSelectorWidget.ui + ../Resources/qSlicer${MODULE_NAME}Module.qrc ) set(${KIT}_TARGET_LIBRARIES diff --git a/DiceComputation/qSlicerDiceComputationModule.cxx b/DiceComputation/qSlicerDiceComputationModule.cxx index 906a514..82b2b68 100644 --- a/DiceComputation/qSlicerDiceComputationModule.cxx +++ b/DiceComputation/qSlicerDiceComputationModule.cxx @@ -31,7 +31,10 @@ #include "qSlicerDiceComputationModuleWidget.h" //----------------------------------------------------------------------------- +#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) +#include Q_EXPORT_PLUGIN2(qSlicerDiceComputationModule, qSlicerDiceComputationModule); +#endif //----------------------------------------------------------------------------- /// \ingroup Slicer_QtModules_ExtensionTemplate diff --git a/DiceComputation/qSlicerDiceComputationModule.h b/DiceComputation/qSlicerDiceComputationModule.h index e0f6906..ee5a95d 100644 --- a/DiceComputation/qSlicerDiceComputationModule.h +++ b/DiceComputation/qSlicerDiceComputationModule.h @@ -36,6 +36,9 @@ qSlicerDiceComputationModule : public qSlicerLoadableModule { Q_OBJECT +#ifdef Slicer_HAVE_QT5 + Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0"); +#endif Q_INTERFACES(qSlicerLoadableModule); public: