diff --git a/src/Tools/plugins/widget/plugin.cpp b/src/Tools/plugins/widget/plugin.cpp index 739c3565ab..cce6a5da4c 100644 --- a/src/Tools/plugins/widget/plugin.cpp +++ b/src/Tools/plugins/widget/plugin.cpp @@ -1587,4 +1587,6 @@ QList CustomWidgetPlugin::customWidgets () con // "\n"); //} +#if QT_VERSION < 0x050000 Q_EXPORT_PLUGIN2(containerextension, CustomWidgetPlugin) +#endif diff --git a/src/Tools/plugins/widget/plugin.pro b/src/Tools/plugins/widget/plugin.pro index 9c6fa74aab..f9e1b4e3d5 100644 --- a/src/Tools/plugins/widget/plugin.pro +++ b/src/Tools/plugins/widget/plugin.pro @@ -1,7 +1,11 @@ TEMPLATE = lib CONFIG += plugin -QT += designer +greaterThan(QT_MAJOR_VERSION, 4) { + QT += designer +} else { + CONFIG += designer +} TARGET = FreeCAD_widgets DEPENDPATH += . INCLUDEPATH += .