diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2020-03-16 15:08:20 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2020-03-20 09:57:26 +0100 |
commit | 02265f9bbc213d219afc345594307affb900e07e (patch) | |
tree | 882a41d2bba43c256a4ae565a65c89e07d29ce79 /tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf | |
parent | cc92cb9329e1fc17758ef432cfa5e2c938a18da0 (diff) |
qdoc: Extend \example command to consider CMake projects
QDoc looks for project file(s) in the example directories
before generating docs for the example. Now that we are
moving towards CMake, it's ideal that qdoc is aware of this
new project file type.
Refactor the code that looks for project files - add a new
function to Config for this purpose, and store the project
file name into ExampleNode. This allows removal of
duplicated logic when generating the example-manifest.xml
file.
Add a unit test for Config::getExampleProjectFile(), and
modify the generatedoutput test to cover output for a
CMake-based example.
[ChangeLog][qdoc] Added support for CMake-based example projects.
Fixes: QTBUG-82908
Change-Id: If9f061c613fee94b35df277043c2f4df93da7ec0
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf')
-rw-r--r-- | tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf b/tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf index 2eb2c5036..8eec4ea4d 100644 --- a/tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf +++ b/tests/auto/qdoc/generatedoutput/testdata/configs/testqml.qdocconf @@ -16,7 +16,7 @@ excludedirs = ../bug80259 sources.fileextensions = "*.qml *.cpp *.qdoc" headers.fileextensions = "*.h" -examples.fileextensions = "*.qml" +examples.fileextensions = "*.qml *.cpp" macro.begincomment = "\\c{/*}" macro.QDocTestVer = "1.1" |