summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2020-01-31 19:55:52 +0800
committerSze Howe Koh <szehowe.koh@gmail.com>2020-02-01 07:31:01 +0800
commitb90eaa3bb516f00feaa5ee2bf4f0dd6fe4ec0d9a (patch)
treed03b689da6add4e2f7088ffa7c0ee07cf67671b3 /examples/widgets/doc
parent967e55a628fcddde38c67791665969e9a530d4d8 (diff)
Examples: Replace deprecated QLabel API
Task-number: QTBUG-48701 Change-Id: I6fc875a35dfc3bf4d906d0f0e495c18ef566d1e1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/widgets/doc')
-rw-r--r--examples/widgets/doc/src/imageviewer.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/doc/src/imageviewer.qdoc b/examples/widgets/doc/src/imageviewer.qdoc
index 91b6385356..8cf8c2489e 100644
--- a/examples/widgets/doc/src/imageviewer.qdoc
+++ b/examples/widgets/doc/src/imageviewer.qdoc
@@ -175,8 +175,8 @@
will expand to
\code
- if (!imageLabel->pixmap())
- qFatal("ASSERT: "imageLabel->pixmap()" in file ...");
+ if (imageLabel->pixmap(Qt::ReturnByValue).isNull())
+ qFatal("ASSERT: "imageLabel->pixmap(Qt::ReturnByValue).isNull()" in file ...");
\endcode
In release mode, the macro simply disappear. The mode can be set