summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src
diff options
context:
space:
mode:
authorYuhang Zhao <[email protected]>2023-02-20 17:06:46 +0800
committerYuhang Zhao <[email protected]>2023-02-22 22:27:35 +0800
commitf7fd5eaf95c964956b2b353784105c89950ffff2 (patch)
tree999559256f061a87dc4e3d0957f21d11cd0a15d8 /examples/widgets/doc/src
parentb4b4c8140112e3e327ca7bfc1263b948001b93f8 (diff)
Fix qtbase build when all deprecated code are disabled
Adjust the callers to use the non-deprecated APIs. Pick-to: 6.5 Change-Id: I8e96f25684a2d613bc400a8626dc9e3af2bb8dcf Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'examples/widgets/doc/src')
-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 17b969d4c82..aa6eec46d8a 100644
--- a/examples/widgets/doc/src/imageviewer.qdoc
+++ b/examples/widgets/doc/src/imageviewer.qdoc
@@ -151,8 +151,8 @@
will expand to
\code
- if (imageLabel->pixmap(Qt::ReturnByValue).isNull())
- qFatal("ASSERT: "imageLabel->pixmap(Qt::ReturnByValue).isNull()" in file ...");
+ if (imageLabel->pixmap().isNull())
+ qFatal("ASSERT: "imageLabel->pixmap().isNull()" in file ...");
\endcode
In release mode, the macro simply disappear. The mode can be set