summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qtversionchecks.cpp
diff options
context:
space:
mode:
authorOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-07-16 10:57:53 +0200
committerOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-07-24 18:52:41 +0200
commit80b61558814c435949e70391d7e7d812bc7b85d7 (patch)
tree85109f88462aba4d4db9b2ecf7e0f2c40b18d7c5 /src/corelib/global/qtversionchecks.cpp
parente34914d5bfcecac4c2e242d4653391a62d7fbc81 (diff)
Add snippets to the build system and fix related issues
Created CMakeLists.txt file with all compilable snippets by now, and added it to the build system. Also fixed some previous files to make them build correctly. And fixed some documentation related to the snippets change. Task-number: QTBUG-137566 Change-Id: Ibf4321dd243bdf774c508bc1e43f9019a9074c30 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/global/qtversionchecks.cpp')
-rw-r--r--src/corelib/global/qtversionchecks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qtversionchecks.cpp b/src/corelib/global/qtversionchecks.cpp
index 3e3f4547f11..807b350ed9b 100644
--- a/src/corelib/global/qtversionchecks.cpp
+++ b/src/corelib/global/qtversionchecks.cpp
@@ -13,7 +13,7 @@
Example:
- \snippet code/src_corelib_global_qglobal.cpp qt-version-check
+ \snippet code/src_corelib_global_qglobal_widgets.cpp qt-version-check
\note the parameters are read as integers in the normal way, so should
normally be written in decimal (so a \c 0x prefix must be used if writing
@@ -40,7 +40,7 @@
Example:
- \snippet code/src_corelib_global_qglobal.cpp 16
+ \snippet code/src_corelib_global_qglobal_widgets.cpp 1
\sa QT_VERSION_STR, QT_VERSION_CHECK(), qVersion()
*/