diff options
author | Yuhang Zhao <2546789017@qq.com> | 2023-02-20 17:06:46 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2023-02-22 22:27:35 +0800 |
commit | f7fd5eaf95c964956b2b353784105c89950ffff2 (patch) | |
tree | 999559256f061a87dc4e3d0957f21d11cd0a15d8 /examples/widgets/doc | |
parent | b4b4c8140112e3e327ca7bfc1263b948001b93f8 (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 <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/doc')
-rw-r--r-- | examples/widgets/doc/src/imageviewer.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/doc/src/imageviewer.qdoc b/examples/widgets/doc/src/imageviewer.qdoc index 17b969d4c8..aa6eec46d8 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 |