Bläddra i källkod

COMP: Fix deprecated header check in Qt5

The QDesignerCustomWidgetInterface header was moved to QtUiPlugin/ in Qt5.5. This
commit fixes errors like the following when compiling with earlier
versions of Qt5:

CTK/Libs/Widgets/Plugins/ctkWidgetsAbstractPlugin.h:29:53: fatal error:
QtUiPlugin/QDesignerCustomWidgetInterface: No such file or directory
Max Smolens 7 år sedan
förälder
incheckning
2e19d673d2

+ 1 - 1
Libs/DICOM/Widgets/Plugins/ctkDICOMWidgetsAbstractPlugin.h

@@ -23,7 +23,7 @@
 
 // Qt includes
 #include <QtGlobal>
-#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+#if QT_VERSION < QT_VERSION_CHECK(5,5,0)
 #include <QDesignerCustomWidgetInterface>
 #else
 #include <QtUiPlugin/QDesignerCustomWidgetInterface>

+ 1 - 1
Libs/Scripting/Python/Widgets/Plugins/ctkScriptingPythonWidgetsAbstractPlugin.h

@@ -23,7 +23,7 @@
 
 // Qt includes
 #include <QtGlobal>
-#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+#if QT_VERSION < QT_VERSION_CHECK(5,5,0)
 #include <QDesignerCustomWidgetInterface>
 #else
 #include <QtUiPlugin/QDesignerCustomWidgetInterface>

+ 1 - 1
Libs/Visualization/VTK/Widgets/Plugins/ctkVTKWidgetsAbstractPlugin.h

@@ -23,7 +23,7 @@
 
 // Qt includes
 #include <QtGlobal>
-#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+#if QT_VERSION < QT_VERSION_CHECK(5,5,0)
 #include <QDesignerCustomWidgetInterface>
 #else
 #include <QtUiPlugin/QDesignerCustomWidgetInterface>

+ 1 - 1
Libs/Widgets/Plugins/ctkWidgetsAbstractPlugin.h

@@ -23,7 +23,7 @@
 
 // Qt includes
 #include <QtGlobal>
-#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+#if QT_VERSION < QT_VERSION_CHECK(5,5,0)
 #include <QDesignerCustomWidgetInterface>
 #else
 #include <QtUiPlugin/QDesignerCustomWidgetInterface>