0008-QtGui-force-image-dir-in-include_path.patch 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. From 7f282aa9f718389199b95b7f53ecd6401172fcc6 Mon Sep 17 00:00:00 2001
  2. From: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
  3. Date: Fri, 24 Jul 2015 13:18:29 +0200
  4. Subject: [PATCH 1/1] fix build with no built-in image handlers
  5. the handlers' .pri files added $$PWD to INCLUDEPATH to make the files
  6. self-contained when used externally, but this polluted the include path
  7. of the gui module itself, thus hiding incorrect use of QPA includes.
  8. Task-number: QTBUG-47400
  9. Change-Id: I576469a71e8ded0b409d62687999c0fa884613f9
  10. Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
  11. ---
  12. src/gui/image/qgifhandler.pri | 1 -
  13. src/gui/image/qjpeghandler.pri | 1 -
  14. src/gui/image/qpnghandler.pri | 1 -
  15. src/gui/painting/qbrush.cpp | 2 +-
  16. src/plugins/imageformats/gif/gif.pro | 1 +
  17. src/plugins/imageformats/jpeg/jpeg.pro | 1 +
  18. 6 files changed, 3 insertions(+), 4 deletions(-)
  19. diff --git a/src/gui/image/qgifhandler.pri b/src/gui/image/qgifhandler.pri
  20. index 6eb0751..ec33101 100644
  21. --- a/src/gui/image/qgifhandler.pri
  22. +++ b/src/gui/image/qgifhandler.pri
  23. @@ -1,4 +1,3 @@
  24. # common to plugin and built-in forms
  25. -INCLUDEPATH *= $$PWD
  26. HEADERS += $$PWD/qgifhandler_p.h
  27. SOURCES += $$PWD/qgifhandler.cpp
  28. diff --git a/src/gui/image/qjpeghandler.pri b/src/gui/image/qjpeghandler.pri
  29. index c8de33d..de40c67 100644
  30. --- a/src/gui/image/qjpeghandler.pri
  31. +++ b/src/gui/image/qjpeghandler.pri
  32. @@ -1,5 +1,4 @@
  33. # common to plugin and built-in forms
  34. -INCLUDEPATH *= $$PWD
  35. HEADERS += $$PWD/qjpeghandler_p.h
  36. SOURCES += $$PWD/qjpeghandler.cpp
  37. contains(QT_CONFIG, system-jpeg) {
  38. diff --git a/src/gui/image/qpnghandler.pri b/src/gui/image/qpnghandler.pri
  39. index aca7e2c..9ab175d 100644
  40. --- a/src/gui/image/qpnghandler.pri
  41. +++ b/src/gui/image/qpnghandler.pri
  42. @@ -1,4 +1,3 @@
  43. -INCLUDEPATH *= $$PWD
  44. HEADERS += $$PWD/qpnghandler_p.h
  45. SOURCES += $$PWD/qpnghandler.cpp
  46. contains(QT_CONFIG, system-png) {
  47. diff --git a/src/gui/painting/qbrush.cpp b/src/gui/painting/qbrush.cpp
  48. index 670717c..c3a0f5c 100644
  49. --- a/src/gui/painting/qbrush.cpp
  50. +++ b/src/gui/painting/qbrush.cpp
  51. @@ -35,7 +35,7 @@
  52. #include "qpixmap.h"
  53. #include "qbitmap.h"
  54. #include "qpixmapcache.h"
  55. -#include "qplatformpixmap.h"
  56. +#include <qpa/qplatformpixmap.h>
  57. #include "qdatastream.h"
  58. #include "qvariant.h"
  59. #include "qline.h"
  60. diff --git a/src/plugins/imageformats/gif/gif.pro b/src/plugins/imageformats/gif/gif.pro
  61. index 898f06e..2a5048b 100644
  62. --- a/src/plugins/imageformats/gif/gif.pro
  63. +++ b/src/plugins/imageformats/gif/gif.pro
  64. @@ -5,6 +5,7 @@ PLUGIN_CLASS_NAME = QGifPlugin
  65. load(qt_plugin)
  66. include(../../../gui/image/qgifhandler.pri)
  67. +INCLUDEPATH += ../../../gui/image
  68. SOURCES += $$PWD/main.cpp
  69. HEADERS += $$PWD/main.h
  70. OTHER_FILES += gif.json
  71. diff --git a/src/plugins/imageformats/jpeg/jpeg.pro b/src/plugins/imageformats/jpeg/jpeg.pro
  72. index 45bf7bb..e33fde1 100644
  73. --- a/src/plugins/imageformats/jpeg/jpeg.pro
  74. +++ b/src/plugins/imageformats/jpeg/jpeg.pro
  75. @@ -9,6 +9,7 @@ QT += core-private
  76. QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-jpeg)"
  77. include(../../../gui/image/qjpeghandler.pri)
  78. +INCLUDEPATH += ../../../gui/image
  79. SOURCES += main.cpp
  80. HEADERS += main.h
  81. OTHER_FILES += jpeg.json
  82. --
  83. 2.1.0