ui: extend "compiler flags" help message (issue #974) (#990)

* extend help dialog for preprocessor defines in project setup to assign values to defines
* make documentation consistent with message box
This commit is contained in:
Malte Langkabel
2020-04-23 16:30:23 +02:00
committed by GitHub
parent 242fe22419
commit 6cef832329
2 changed files with 14 additions and 5 deletions
+3 -3
View File
@@ -2131,7 +2131,7 @@
</tr>
<tr>
<th scope="row">Compiler Flags</th>
<td><p>Define additional compiler flags used during indexing including the dash (e.g. use <code>-D RELEASE</code> to add a <code>#define</code> for <code>RELEASE</code>).</p><p>For instructions on how to add paths see <a href="#PathListBox">Path List Box</a>.</p></td>
<td><p>Define additional compiler flags used during indexing including the dash (e.g. use <code>-DRELEASE</code> to add a <code>#define</code> for <code>RELEASE</code>).</p><p>For instructions on how to add paths see <a href="#PathListBox">Path List Box</a>.</p></td>
</tr>
<tr>
<th scope="row">Precompiled Header File</th>
@@ -2194,7 +2194,7 @@
</tr>
<tr>
<th scope="row">Additional Compiler Flags</th>
<td><p>Define additional compiler flags used during indexing including the dash (e.g. use <code>-D RELEASE</code> to add a <code>#define</code> for <code>RELEASE</code>).</p><p>For instructions on how to add paths see <a href="#PathListBox">Path List Box</a>.</p></td>
<td><p>Define additional compiler flags used during indexing including the dash (e.g. use <code>-DRELEASE</code> to add a <code>#define</code> for <code>RELEASE</code>).</p><p>For instructions on how to add paths see <a href="#PathListBox">Path List Box</a>.</p></td>
</tr>
<tr>
<th scope="row">Precompiled Header File</th>
@@ -2287,7 +2287,7 @@
</tr>
<tr>
<th scope="row">Additional Compiler Flags</th>
<td><p>Define additional compiler flags used during indexing including the dash (e.g. use <code>-D RELEASE</code> to add a <code>#define</code> for <code>RELEASE</code>).</p><p>For instructions on how to add paths see <a href="#PathListBox">Path List Box</a>.</p></td>
<td><p>Define additional compiler flags used during indexing including the dash (e.g. use <code>-DRELEASE</code> to add a <code>#define</code> for <code>RELEASE</code>).</p><p>For instructions on how to add paths see <a href="#PathListBox">Path List Box</a>.</p></td>
</tr>
</tbody>
</table>
@@ -28,8 +28,17 @@ void QtProjectWizardContentFlags::populate(QGridLayout* layout, int& row)
QStringLiteral(
"<p>Define additional Clang compiler flags used during indexing. Here are some "
"examples:</p>"
"<p>use \"-DRELEASE\" to add a preprocessor #define for \"RELEASE\"</p>"
"<p>use \"-U__clang__\" to remove the preprocessor #define for \"__clang__\"</p>"),
"<ul style=\"-qt-list-indent:0;\">"
"<li style=\"margin-left:1em\">use '-DRELEASE' to add a preprocessor #define for "
"'RELEASE'</li>"
"<li style=\"margin-left:1em\">use '-U__clang__' to remove the preprocessor #define "
"for "
"'__clang__'</li>"
"<li style=\"margin-left:1em\">use '-DFOO=900' to add an integer preprocessor "
"define</li>"
"<li style=\"margin-left:1em\">use '-DFOO=\"bar\"' to add a string preprocessor "
"define</li>"
"</ul>"),
layout,
row);