From fbeeaf23fe1755bc28185781d8182ddcb4e7985a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Martins?= Date: Sun, 15 Feb 2015 16:39:13 +0000 Subject: Introduce QT_NO_MIMETYPE The mime type stuff generates one of the biggest translation units in QtCore due to the compressed 1.7MB freedesktop.org.xml resource. With QT_NO_MIMETYPE, libQt5Core.so is almost 400Kb smaller (4.8MB->4.4MB gcc 4.9 stripped release build) Change-Id: I5339090994034355724ff4deddb64720e81baeaf Reviewed-by: Oswald Buddenhagen Reviewed-by: David Faure Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/printsupport/kernel/qprintdevice_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/printsupport/kernel/qprintdevice_p.h') diff --git a/src/printsupport/kernel/qprintdevice_p.h b/src/printsupport/kernel/qprintdevice_p.h index e2a3e7872b..0250b937bd 100644 --- a/src/printsupport/kernel/qprintdevice_p.h +++ b/src/printsupport/kernel/qprintdevice_p.h @@ -123,7 +123,9 @@ public: QPrint::ColorMode defaultColorMode() const; QList supportedColorModes() const; +#ifndef QT_NO_MIMETYPE QList supportedMimeTypes() const; +#endif private: friend class QPlatformPrinterSupport; -- cgit v1.2.3