diff options
author | Topi Reinio <topi.reinio@qt.io> | 2019-07-11 20:05:52 +0200 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2019-07-12 06:19:07 +0200 |
commit | 7d4c9a6f8f459747678b87ea4e2bd2e93d686115 (patch) | |
tree | c06ccf23174154fe347c7ca98243028c9d8862c7 | |
parent | 3f8e754f07db944dc74d84cc1c24d3e11677ad09 (diff) |
Doc: Ensure macOS-specific widget docs are generated on other platforms
The Clang parser in QDoc fails to parse the .mm source files if their
include files are not found. Add a dummy 'AppKit.h' file under the
/doc directory for this purpose, and add its include path to
qtwidgets.qdocconf.
Task-number: QTBUG-77009
Change-Id: Iaa984cb8f860367cbb7aa95808d26fb69d7da349
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/widgets/doc/macOS/AppKit/AppKit.h | 1 | ||||
-rw-r--r-- | src/widgets/doc/qtwidgets.qdocconf | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/doc/macOS/AppKit/AppKit.h b/src/widgets/doc/macOS/AppKit/AppKit.h new file mode 100644 index 0000000000..29e2004423 --- /dev/null +++ b/src/widgets/doc/macOS/AppKit/AppKit.h @@ -0,0 +1 @@ +// Dummy header used in documentation build diff --git a/src/widgets/doc/qtwidgets.qdocconf b/src/widgets/doc/qtwidgets.qdocconf index 6e04372a8b..548224bf61 100644 --- a/src/widgets/doc/qtwidgets.qdocconf +++ b/src/widgets/doc/qtwidgets.qdocconf @@ -5,6 +5,9 @@ project = QtWidgets description = Qt Widgets Reference Documentation version = $QT_VERSION +# dummy macOS headers for generating docs under non-mac platforms +includepaths += -I./macOS + examplesinstallpath = widgets qhp.projects = QtWidgets |