Doc: Fix snippet for Q_DECLARE_EXPORTED_CATEGORY
The name argument must be a C++ variable name, not a string. Pick-to: 6.5 Change-Id: I6bc45bc9a57fd8429cf033aa118eebff0fcfc4a5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
314a4d121f
commit
7a37114af9
@ -626,7 +626,7 @@ void QLoggingCategory::setFilterRules(const QString &rules)
|
||||
For example:
|
||||
|
||||
\code
|
||||
Q_DECLARE_EXPORTED_LOGGING_CATEGORY("lib.core", LIB_EXPORT_MACRO)
|
||||
Q_DECLARE_EXPORTED_LOGGING_CATEGORY(lcCore, LIB_EXPORT_MACRO)
|
||||
\endcode
|
||||
|
||||
This macro must be used outside of a class or function.
|
||||
|
Loading…
Reference in New Issue
Block a user