diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-09-20 17:53:31 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-09-22 13:48:16 +0200 |
commit | 95a3f85a2fae7dc44c1351475e00b93c9b527a7e (patch) | |
tree | 6e19fefcd9f890969b70e9ec75bf280d6564fa75 /src/widgets/dialogs | |
parent | 64eab8e234fdf81ff48113a51f6e4d7395cf52d9 (diff) |
Move docs for QT_REQUIRE_VERSION to qmessagebox.cpp
Task-number: QTBUG-106154
Change-Id: I880b25a7dd4b834aa6b23a670bddddac6aaec256
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r-- | src/widgets/dialogs/qmessagebox.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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 <QMessageBox> + + 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" |