From 95a3f85a2fae7dc44c1351475e00b93c9b527a7e Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Tue, 20 Sep 2022 17:53:31 +0200 Subject: Move docs for QT_REQUIRE_VERSION to qmessagebox.cpp Task-number: QTBUG-106154 Change-Id: I880b25a7dd4b834aa6b23a670bddddac6aaec256 Reviewed-by: Volker Hilsheimer --- src/widgets/dialogs/qmessagebox.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/widgets/dialogs') diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp index e9682440c6..eeab47f822 100644 --- a/src/widgets/dialogs/qmessagebox.cpp +++ b/src/widgets/dialogs/qmessagebox.cpp @@ -2738,6 +2738,25 @@ QPixmap QMessageBox::standardIcon(Icon icon) \sa show(), result() */ +/*! + \macro QT_REQUIRE_VERSION(int argc, char **argv, const char *version) + \relates + + This macro can be used to ensure that the application is run + with a recent enough version of Qt. This is especially useful + if your application depends on a specific bug fix introduced in a + bug-fix release (for example, 6.1.2). + + The \a argc and \a argv parameters are the \c main() function's + \c argc and \c argv parameters. The \a version parameter is a + string literal that specifies which version of Qt the application + requires (for example, "6.1.2"). + + Example: + + \snippet code/src_gui_dialogs_qmessagebox.cpp 4 +*/ + QT_END_NAMESPACE #include "moc_qmessagebox.cpp" -- cgit v1.2.3