summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/iconengines/svgiconengine/main.cpp4
-rw-r--r--src/plugins/imageformats/svg/main.cpp2
-rw-r--r--src/plugins/plugins.pro5
3 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/iconengines/svgiconengine/main.cpp b/src/plugins/iconengines/svgiconengine/main.cpp
index eb86627..ebcdc82 100644
--- a/src/plugins/iconengines/svgiconengine/main.cpp
+++ b/src/plugins/iconengines/svgiconengine/main.cpp
@@ -40,8 +40,6 @@
#include <qiconengineplugin.h>
#include <qstringlist.h>
-#if !defined(QT_NO_IMAGEFORMATPLUGIN)
-
#include "qsvgiconengine.h"
#include <qiodevice.h>
@@ -80,5 +78,3 @@ QIconEngine *QSvgIconPlugin::create(const QString &file)
QT_END_NAMESPACE
#include "main.moc"
-
-#endif // !QT_NO_IMAGEFORMATPLUGIN
diff --git a/src/plugins/imageformats/svg/main.cpp b/src/plugins/imageformats/svg/main.cpp
index 97c8a34..f18c1b4 100644
--- a/src/plugins/imageformats/svg/main.cpp
+++ b/src/plugins/imageformats/svg/main.cpp
@@ -40,7 +40,7 @@
#include <qimageiohandler.h>
#include <qstringlist.h>
-#if !defined(QT_NO_IMAGEFORMATPLUGIN) && !defined(QT_NO_SVGRENDERER)
+#if !defined(QT_NO_SVGRENDERER)
#include "qsvgiohandler.h"
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index 1d714d4..3965957 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -1,2 +1,5 @@
TEMPLATE = subdirs
-SUBDIRS += iconengines imageformats
+
+load(qfeatures)
+!contains(QT_DISABLED_FEATURES, imageformatplugin): SUBDIRS += imageformats
+SUBDIRS += iconengines