Move docs for QT_REQUIRE_VERSION to qmessagebox.cpp

Task-number: QTBUG-106154
Change-Id: I880b25a7dd4b834aa6b23a670bddddac6aaec256
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Sona Kurazyan 2022-09-20 17:53:31 +02:00
parent 64eab8e234
commit 95a3f85a2f
2 changed files with 19 additions and 19 deletions

View File

@ -1323,25 +1323,6 @@ bool QInternal::activateCallbacks(Callback cb, void **parameters)
\sa QT_NAMESPACE
*/
/*!
\macro QT_REQUIRE_VERSION(int argc, char **argv, const char *version)
\relates <QtGlobal>
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
*/
/*!
\macro Q_DECL_EXPORT
\relates <QtGlobal>

View File

@ -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"