diff options
author | Kai Koehne <kai.koehne@qt.io> | 2018-11-14 14:28:09 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2019-02-12 09:47:05 +0000 |
commit | b7decf54170ce71811bcbc13526e31914b0498e9 (patch) | |
tree | 6ea7487242883233b22e82e16a291fa2771297a3 | |
parent | 802aa37f7725ca3d75d1e928d845c6df534943ba (diff) | |
download | qttools-b7decf54170ce71811bcbc13526e31914b0498e9.tar.gz |
qtattributionsscanner: Add version to third-party component name
This is information important enough to show up in the title, and
therefore also in the overview pages.
Change-Id: I4bad7b46e186e34133a8a3cebe0c68cebec0e76c
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/qtattributionsscanner/qdocgenerator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qtattributionsscanner/qdocgenerator.cpp b/src/qtattributionsscanner/qdocgenerator.cpp index 84cf998bd..f3e1a6aaf 100644 --- a/src/qtattributionsscanner/qdocgenerator.cpp +++ b/src/qtattributionsscanner/qdocgenerator.cpp @@ -86,8 +86,10 @@ static void generate(QTextStream &out, const Package &package, const QDir &baseD } out << "\\target " << package.id << "\n\n"; - out << "\\title " << package.name << "\n"; - out << "\\brief " << package.license << "\n\n"; + out << "\\title " << package.name; + if (!package.version.isEmpty()) + out << ", version " << package.version; + out << "\n\n\\brief " << package.license << "\n\n"; if (!package.description.isEmpty()) out << package.description << "\n\n"; |