Commit 98171a61 authored by jcfr's avatar jcfr

STYLE: Remove obsolete code supporting Qt4 plugin infrastructure

See https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide#Obsolete_Code_RemovalCo-authored-by: Jean-Christophe Fillion-Robin's avatarJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Co-authored-by: phcerdan's avatarPablo Hernandez-Cerdan <pablo.hernandez.cerdan@outlook.com>

From: Pablo Hernandez-Cerdan <pablo.hernandez.cerdan@outlook.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@28001 3bd1e089-480b-0410-8dfb-8563597acbee
parent 1e4cc629
......@@ -23,11 +23,7 @@
// QT includes
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
// QTCLI includes
#include "qSlicerBaseQTCLIPluginsExport.h"
......@@ -35,9 +31,7 @@
class Q_SLICER_BASE_QTCLI_PLUGINS_EXPORT qSlicerQTCLIAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
......@@ -21,8 +21,3 @@
#include "qSlicerQTCLIPlugins.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerQTCLIPlugins);
#endif
......@@ -23,11 +23,7 @@
// QT includes
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
// QTGUI includes
#include "qSlicerBaseQTGUIDesignerPluginsExport.h"
......@@ -35,9 +31,7 @@
class Q_SLICER_DESIGNER_PLUGINS_EXPORT qSlicerQTGUIAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
......@@ -21,8 +21,3 @@
#include "qSlicerQTGUIPlugins.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerQTGUIPlugins);
#endif
......@@ -27,12 +27,6 @@
#include "qSlicerDarkStyle.h"
#include "qSlicerStylePlugin.h"
// --------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerStylePlugin, qSlicerStylePlugin)
#endif
// --------------------------------------------------------------------------
// qSlicerStylePlugin methods
......
......@@ -20,12 +20,6 @@
#include "qSlicerIconEnginePlugin.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerIconEnginePlugin, qSlicerIconEnginePlugin)
#endif
//------------------------------------------------------------------------------
qSlicerIconEnginePlugin::qSlicerIconEnginePlugin(QObject* parentObject)
:ctkIconEnginePlugin(parentObject)
......
......@@ -22,12 +22,6 @@
#include "qSlicerLoadableModuleTemplateModule.h"
#include "qSlicerLoadableModuleTemplateModuleWidget.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerLoadableModuleTemplateModule, qSlicerLoadableModuleTemplateModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_ExtensionTemplate
class qSlicerLoadableModuleTemplateModulePrivate
......
......@@ -22,12 +22,6 @@
#include "qSlicerSuperLoadableModuleTemplateModule.h"
#include "qSlicerSuperLoadableModuleTemplateModuleWidget.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerSuperLoadableModuleTemplateModule, qSlicerSuperLoadableModuleTemplateModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_ExtensionTemplate
class qSlicerSuperLoadableModuleTemplateModulePrivate
......
#include "qMRMLWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qMRMLWidgetsPlugin);
#endif
#include "qSlicerTablesModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerTablesModuleWidgetsPlugin);
#endif
......@@ -22,19 +22,13 @@
#define __qSlicerAnnotationModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerAnnotationsModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_ANNOTATIONS_WIDGETS_PLUGINS_EXPORT qSlicerAnnotationModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerAnnotationModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerAnnotationModuleWidgetsPlugin);
#endif
......@@ -25,12 +25,6 @@
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkSlicerAnnotationsModuleMRMLDisplayableManager)
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerAnnotationsModule, qSlicerAnnotationsModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_Annotation
class qSlicerAnnotationsModulePrivate
......
......@@ -23,12 +23,6 @@
#include "qSlicerCamerasModuleWidget.h"
#include "vtkSlicerCamerasModuleLogic.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerCamerasModule, qSlicerCamerasModule);
#endif
//-----------------------------------------------------------------------------
class qSlicerCamerasModulePrivate
{
......
......@@ -41,12 +41,6 @@
#include <vtkSlicerApplicationLogic.h>
#include "vtkSlicerColorLogic.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerColorsModule, qSlicerColorsModule);
#endif
//-----------------------------------------------------------------------------
class qSlicerColorsModulePrivate
{
......
......@@ -15,12 +15,6 @@
#include "qSlicerCropVolumeModule.h"
#include "qSlicerCropVolumeModuleWidget.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerCropVolumeModule, qSlicerCropVolumeModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_CropVolume
class qSlicerCropVolumeModulePrivate
......
......@@ -47,12 +47,6 @@
// VTK includes
#include <vtkSmartPointer.h>
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerDataModule, qSlicerDataModule);
#endif
//-----------------------------------------------------------------------------
class qSlicerDataModulePrivate
{
......
......@@ -27,12 +27,6 @@
#include "qSlicerDoubleArraysModule.h"
#include "qSlicerDoubleArraysReader.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerDoubleArraysModule, qSlicerDoubleArraysModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_ExtensionTemplate
class qSlicerDoubleArraysModulePrivate
......
......@@ -22,19 +22,13 @@
#define __qSlicerMarkupsModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerMarkupsModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_MARKUPS_WIDGETS_PLUGINS_EXPORT qSlicerMarkupsModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerMarkupsModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerMarkupsModuleWidgetsPlugin);
#endif
......@@ -46,12 +46,6 @@
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkSlicerMarkupsModuleMRMLDisplayableManager)
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerMarkupsModule, qSlicerMarkupsModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_Markups
class qSlicerMarkupsModulePrivate
......
......@@ -22,19 +22,13 @@
#define __qSlicerModelsWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerModelsModuleWidgetsPluginsExport.h"
class Q_SLICER_QTMODULES_MODELS_WIDGETS_PLUGINS_EXPORT qSlicerModelsWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
......@@ -21,8 +21,3 @@
#include "qSlicerModelsWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerModelsWidgetsPlugin);
#endif
......@@ -42,12 +42,6 @@
#include "qSlicerSubjectHierarchyPluginHandler.h"
#include "qSlicerSubjectHierarchyModelsPlugin.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerModelsModule, qSlicerModelsModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_Models
class qSlicerModelsModulePrivate
......
......@@ -22,19 +22,13 @@
#define __qSlicerPlotsModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerPlotsModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_PLOTS_WIDGETS_PLUGINS_EXPORT qSlicerPlotsModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerPlotsModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerPlotsModuleWidgetsPlugin);
#endif
......@@ -32,12 +32,6 @@
#include "qSlicerSubjectHierarchyPluginHandler.h"
#include "qSlicerSubjectHierarchyPlotsPlugin.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerPlotsModule, qSlicerPlotsModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_ExtensionTemplate
class qSlicerPlotsModulePrivate
......
......@@ -28,12 +28,6 @@
#include "qSlicerReformatModule.h"
#include "qSlicerReformatModuleWidget.h"
//------------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerReformatModule, qSlicerReformatModule);
#endif
//------------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_Reformat
class qSlicerReformatModulePrivate
......
......@@ -14,12 +14,6 @@
#include "qSlicerSubjectHierarchyPluginHandler.h"
#include "qSlicerSubjectHierarchySceneViewsPlugin.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerSceneViewsModule, qSlicerSceneViewsModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_SceneViews
class qSlicerSceneViewsModulePrivate
......
......@@ -22,19 +22,13 @@
#define __qSlicerSegmentationsModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerSegmentationsModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_PLUGINS_EXPORT qSlicerSegmentationsModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerSegmentationsModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerSegmentationsModuleWidgetsPlugin);
#endif
......@@ -66,12 +66,6 @@
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkSlicerSegmentationsModuleMRMLDisplayableManager)
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerSegmentationsModule, qSlicerSegmentationsModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup SlicerRt_QtModules_Segmentations
class qSlicerSegmentationsModulePrivate
......
......@@ -22,12 +22,6 @@
#include "qSlicerWelcomeModule.h"
#include "qSlicerWelcomeModuleWidget.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerWelcomeModule, qSlicerWelcomeModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_SlicerWelcome
class qSlicerWelcomeModulePrivate
......
......@@ -24,20 +24,14 @@
#define __qSlicerSubjectHierarchyModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerSubjectHierarchyModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_PLUGINS_EXPORT qSlicerSubjectHierarchyModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerSubjectHierarchyModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerSubjectHierarchyModuleWidgetsPlugin);
#endif
......@@ -36,12 +36,6 @@
// MRML includes
#include <vtkMRMLScene.h>
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerSubjectHierarchyModule, qSlicerSubjectHierarchyModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_SubjectHierarchy
class qSlicerSubjectHierarchyModulePrivate
......
......@@ -22,19 +22,13 @@
#define __qSlicerTablesModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerTablesModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_TABLES_WIDGETS_PLUGINS_EXPORT qSlicerTablesModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerTablesModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerTablesModuleWidgetsPlugin);
#endif
......@@ -36,12 +36,6 @@
#include "qSlicerSubjectHierarchyPluginHandler.h"
#include "qSlicerSubjectHierarchyTablesPlugin.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerTablesModule, qSlicerTablesModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_ExtensionTemplate
class qSlicerTablesModulePrivate
......
......@@ -22,20 +22,14 @@
#define __qSlicerTerminologiesModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerTerminologiesModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_TERMINOLOGIES_WIDGETS_PLUGINS_EXPORT qSlicerTerminologiesModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerTerminologiesModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerTerminologiesModuleWidgetsPlugin);
#endif
......@@ -35,12 +35,6 @@
#include <qSlicerModuleManager.h>
#include "qSlicerIOManager.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerTerminologiesModule, qSlicerTerminologiesModule);
#endif
//-----------------------------------------------------------------------------
/// \ingroup SlicerRt_QtModules_Terminologies
class qSlicerTerminologiesModulePrivate
......
......@@ -25,19 +25,13 @@
#define __qSlicerTransformsModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerTransformsModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_TRANSFORMS_WIDGETS_PLUGINS_EXPORT qSlicerTransformsModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
#include "qSlicerTransformsModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerTransformsModuleWidgetsPlugin);
#endif
......@@ -43,13 +43,6 @@
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkSlicerTransformsModuleMRMLDisplayableManager)
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerTransformsModule, qSlicerTransformsModule);
#endif
//-----------------------------------------------------------------------------
class qSlicerTransformsModulePrivate
{
......
......@@ -22,20 +22,14 @@
#define __qSlicerUnitModuleWidgetsAbstractPlugin_h
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QDesignerCustomWidgetInterface>
#else
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
#endif
#include "qSlicerUnitsModuleWidgetsPluginsExport.h"
class Q_SLICER_MODULE_UNITS_WIDGETS_PLUGINS_EXPORT qSlicerUnitsModuleWidgetsAbstractPlugin
: public QDesignerCustomWidgetInterface
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#endif
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
......
......@@ -21,8 +21,3 @@
#include "qSlicerUnitsModuleWidgetsPlugin.h"
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(customwidgetplugin, qSlicerUnitsModuleWidgetsPlugin);
#endif
......@@ -26,12 +26,6 @@
#include "qSlicerUnitsModule.h"
#include "qSlicerUnitsSettingsPanel.h"
//-----------------------------------------------------------------------------
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#include <QtPlugin>
Q_EXPORT_PLUGIN2(qSlicerUnitsModule, qSlicerUnitsModule);
#endif
//-----------------------------------------------------------------------------
class qSlicerUnitsModulePrivate
{
......