Doc: Reword, fix typos and some formatting

Change-Id: I0929f7653cb07665842d0aa7bf18dc80471febdc
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
Ivan Tkachenko 2021-10-23 23:04:56 +03:00
parent cb00db5a7e
commit e65c29fffc
2 changed files with 8 additions and 7 deletions

View File

@ -422,8 +422,8 @@ void QMessageLogger::info(const char *msg, ...) const
\snippet code/qlogging/qlogging.cpp 2
A function which this signature is generated by Q_DECLARE_LOGGING_CATEGORY,
Q_LOGGING_CATEGORY.
The \c Q_DECLARE_LOGGING_CATEGORY macro generates a function declaration
with this signature, and \c Q_LOGGING_CATEGORY generates its definition.
\since 5.3
*/
@ -1946,9 +1946,10 @@ void qErrnoWarning(int code, const char *msg, ...)
compilation. If you implement your own message handler, you get total
control of these messages.
The default message handler prints the message to the standard
output under X11 or to the debugger under Windows. If it is a
fatal message, the application aborts immediately.
The default message handler prints the message to the standard output
under X11 or to the debugger under Windows. If it is a fatal message, the
application aborts immediately after handling that message. Custom
message handlers should not attempt to exit an application on their own.
Only one message handler can be defined, since this is usually
done on an application-wide basis to control debug output.
@ -2015,7 +2016,7 @@ void qErrnoWarning(int code, const char *msg, ...)
Example:
\snippet code/src_corelib_global_qlogging.cpp 0
The default \a pattern is "%{if-category}%{category}: %{endif}%{message}".
The default \a pattern is \c{%{if-category}%{category}: %{endif}%{message}}.
The \a pattern can also be changed at runtime by setting the QT_MESSAGE_PATTERN
environment variable; if both \l qSetMessagePattern() is called and QT_MESSAGE_PATTERN is

View File

@ -2086,7 +2086,7 @@ bool QAbstractItemModel::clearItemData(const QModelIndex &index)
by the \a index.
\note If you do not have a value to return, return an \b invalid
QVariant instead of returning 0.
(default-constructed) QVariant.
\sa Qt::ItemDataRole, setData(), headerData()
*/