summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-05-28 16:19:10 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-05-28 14:40:56 +0000
commit44acd87abb025e25992a195b819d8f5cf00ea01e (patch)
tree55978f4eb6bc20c97bda2be1d07c27de75b31da9
parent09fa2b541abb3237838929dd9e975c0a977fd338 (diff)
Documentation: Fix Qt11Extras
Work around the non-standard header naming of the module in the documentation generation (see also file sources/pyside2/PySide2/QtX11Extras/QtX11Extras_global.post.h.in). Task-number: PYSIDE-363 Change-Id: I3ff8bb666513a13fde4d13693fd06bdd7866e050 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--sources/pyside2/doc/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/pyside2/doc/CMakeLists.txt b/sources/pyside2/doc/CMakeLists.txt
index eb9a8ad1..1c2c3669 100644
--- a/sources/pyside2/doc/CMakeLists.txt
+++ b/sources/pyside2/doc/CMakeLists.txt
@@ -54,7 +54,12 @@ foreach(moduleIn ${all_module_shortnames})
" -I ${QT_INCLUDE_DIR}Qt${module}/${Qt5Core_VERSION} \\\n"
" -I ${QT_INCLUDE_DIR}Qt${module}/${Qt5Core_VERSION}/Qt${module} \\\n")
- set(docHeaderContents "${docHeaderContents}\n#include <Qt${module}/Qt${module}>")
+ if (${moduleIn} STREQUAL "X11Extras")
+ set(globalHeader "QX11Info")
+ else()
+ set(globalHeader "Qt${module}")
+ endif()
+ set(docHeaderContents "${docHeaderContents}\n#include <Qt${module}/${globalHeader}>")
set(typeSystemDocXmlContents "${typeSystemDocXmlContents}\n<load-typesystem name=\"Qt${module}/typesystem_${lowerModule}.xml\" generate=\"yes\"/>")
endforeach()
endif()