From db48c49af94b13bf33edf6e0bcad6fe77f988c28 Mon Sep 17 00:00:00 2001
From: Leena Miettinen
Date: Wed, 8 Apr 2015 12:43:38 +0200
Subject: [PATCH] Doc: add a "commercial" icon to commercial-only topics
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
For purely commercial apps, this is done by using the
template, but Qt Creator is mostly open source, so an
image is used.
Use a \commercial macro with a tooltip and link to the
image.
Change-Id: I5e3df953821551331afef2ec642b482b52ff909e
Reviewed-by: Topi Reiniƶ
---
doc/config/images/commercial.png | Bin 0 -> 334 bytes
doc/config/macros.qdocconf | 1 +
doc/config/qtcreator-project.qdocconf | 4 ++++
doc/src/analyze/cpu-usage-analyzer.qdoc | 2 ++
.../analyze/creator-clang-static-analyzer.qdoc | 2 ++
doc/src/howto/creator-autotest.qdoc | 2 ++
doc/src/overview/creator-commercial-overview.qdoc | 2 ++
doc/src/qtquick/qtquick-connection-editor.qdoc | 2 ++
doc/src/qtquick/qtquick-designer-extensions.qdoc | 2 ++
doc/src/qtquick/qtquick-pathview-editor.qdoc | 2 ++
10 files changed, 19 insertions(+)
create mode 100644 doc/config/images/commercial.png
diff --git a/doc/config/images/commercial.png b/doc/config/images/commercial.png
new file mode 100644
index 0000000000000000000000000000000000000000..852737d4bcb5c55e7e7b72066d26f5715a780073
GIT binary patch
literal 334
zcmeAS@N?(olHy`uVBq!ia0y~yU@&1|U~uGMW?*1g=~=#-fq|hbz$e5tW|heQ|Nl?^
z`TzghvDj5Xacf*Z|NsC0`SkeJMg^;cYgY;%{`vp!|G#VBe(QVu_Tt+Y|NlNedTmqN
z?#v56|NsC0`Pa86M<3l-e(%QXmnUM6ANAS2cI~A#Wk;6(f4SuIlO;E9&%bzO{)}Uj
z-rVVoT3a*wK-G;41vR@fV^_sDY;h^uVt8(!&a^cG^H&J$+Q#PXqvXcGz)vqV6Wn_@|Hg<#jhaTx@Z4TKxwT
xr>*w#VNY9c&9dCm*Y;?=Z?U
\n\\endraw"
macro.beginfloatleft.HTML = ""
macro.beginfloatright.HTML = "
"
diff --git a/doc/config/qtcreator-project.qdocconf b/doc/config/qtcreator-project.qdocconf
index d4dc2f247c1..598bd327358 100644
--- a/doc/config/qtcreator-project.qdocconf
+++ b/doc/config/qtcreator-project.qdocconf
@@ -8,6 +8,10 @@ imagedirs = $SRCDIR/images $SRCDIR/templates/images
outputdir = $OUTDIR
exampledirs = $SRCDIR/examples
+HTML.extraimages = images/commercial.png
+qhp.QtCreator.extraFiles = images/commercial.png
+
+
indexes += $QDOC_INDEX_DIR/qtwidgets/qtwidgets.index \
$QDOC_INDEX_DIR/qtcore/qtcore.index \
$QDOC_INDEX_DIR/qtqml/qtqml.index \
diff --git a/doc/src/analyze/cpu-usage-analyzer.qdoc b/doc/src/analyze/cpu-usage-analyzer.qdoc
index 1a2971b79de..e3eb74cdfdc 100644
--- a/doc/src/analyze/cpu-usage-analyzer.qdoc
+++ b/doc/src/analyze/cpu-usage-analyzer.qdoc
@@ -30,6 +30,8 @@
\title Analyzing CPU Usage
+ \commercial
+
\QC is integrated with the Linux Perf tool (commercial only) that can be
used to analyze the CPU usage of an application on embedded devices and, to
a limited extent, on Linux desktop platforms. The CPU Usage Analyzer uses
diff --git a/doc/src/analyze/creator-clang-static-analyzer.qdoc b/doc/src/analyze/creator-clang-static-analyzer.qdoc
index 3485be704fa..b4692213793 100644
--- a/doc/src/analyze/creator-clang-static-analyzer.qdoc
+++ b/doc/src/analyze/creator-clang-static-analyzer.qdoc
@@ -31,6 +31,8 @@
\title Using Clang Static Analyzer
+ \commercial
+
\QC integrates the \l{http://clang-analyzer.llvm.org}
{Clang Static Analyzer} for finding problems in C, C++, and Objective-C
programs (commercial only).
diff --git a/doc/src/howto/creator-autotest.qdoc b/doc/src/howto/creator-autotest.qdoc
index 8500c1c1282..a394dcc62f2 100644
--- a/doc/src/howto/creator-autotest.qdoc
+++ b/doc/src/howto/creator-autotest.qdoc
@@ -35,6 +35,8 @@
\title Running Autotests
+ \commercial
+
\QC integrates the \l{Qt Test} framework for unit testing Qt based
applications and libraries (commercial only). You can use \QC to build and
run autotests for your projects.
diff --git a/doc/src/overview/creator-commercial-overview.qdoc b/doc/src/overview/creator-commercial-overview.qdoc
index 3665d5c095a..f21189d373c 100644
--- a/doc/src/overview/creator-commercial-overview.qdoc
+++ b/doc/src/overview/creator-commercial-overview.qdoc
@@ -28,6 +28,8 @@
\title Qt Creator Commercial Features
+ \commercial
+
You can use the following \QC features if you have the appropriate
\l{http://qt.io/licensing/}{Qt license}:
diff --git a/doc/src/qtquick/qtquick-connection-editor.qdoc b/doc/src/qtquick/qtquick-connection-editor.qdoc
index 6fb08767e2c..2d3aa49ccf6 100644
--- a/doc/src/qtquick/qtquick-connection-editor.qdoc
+++ b/doc/src/qtquick/qtquick-connection-editor.qdoc
@@ -35,6 +35,8 @@
\title Adding Connections
+ \commercial
+
You can use the \uicontrol {Connections} view (commercial only) to:
\list
diff --git a/doc/src/qtquick/qtquick-designer-extensions.qdoc b/doc/src/qtquick/qtquick-designer-extensions.qdoc
index 0ff8231c7a5..127a1860425 100644
--- a/doc/src/qtquick/qtquick-designer-extensions.qdoc
+++ b/doc/src/qtquick/qtquick-designer-extensions.qdoc
@@ -35,6 +35,8 @@
\title Using Qt Quick Designer Extensions
+ \commercial
+
\image qmldesigner-extensions.png
\QMLD contains commercial features that make developing Qt Quick
diff --git a/doc/src/qtquick/qtquick-pathview-editor.qdoc b/doc/src/qtquick/qtquick-pathview-editor.qdoc
index d65310f9adb..4e15cb0424a 100644
--- a/doc/src/qtquick/qtquick-pathview-editor.qdoc
+++ b/doc/src/qtquick/qtquick-pathview-editor.qdoc
@@ -35,6 +35,8 @@
\title Editing PathView Properties
+ \commercial
+
A \l{PathView} lays out data provided by data models on a \l{Path}.
A graphical spline editor enables you to specify PathView paths, which