summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/icons.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/doc/icons.qdoc')
-rw-r--r--examples/widgets/doc/icons.qdoc13
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/widgets/doc/icons.qdoc b/examples/widgets/doc/icons.qdoc
index 2ccf8cac43..b6625db005 100644
--- a/examples/widgets/doc/icons.qdoc
+++ b/examples/widgets/doc/icons.qdoc
@@ -278,17 +278,24 @@
If the application is built in debug mode, the \c Q_ASSERT()
macro will expand to
- \snippet doc/src/snippets/code/doc_src_examples_icons.cpp 0
+ \code
+ if (!condition)
+ qFatal("ASSERT: "condition" in file ...");
+ \endcode
In release mode, the macro simply disappear. The mode can be set
in the application's \c .pro file. One way to do so is to add an
option to \c qmake when building the application:
- \snippet doc/src/snippets/code/doc_src_examples_icons.qdoc 1
+ \code
+ qmake "CONFIG += debug" icons.pro
+ \endcode
or
- \snippet doc/src/snippets/code/doc_src_examples_icons.qdoc 2
+ \code
+ qmake "CONFIG += release" icons.pro
+ \endcode
Another approach is to add this line directly to the \c .pro
file.