Doc: Fix snippet for Q_DECLARE_EXPORTED_CATEGORY
The name argument must be a C++ variable name, not a string. Change-Id: I6bc45bc9a57fd8429cf033aa118eebff0fcfc4a5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 7a37114af92fcaa6f8ed2eb17a4632b4880c8bbe) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
679ad1d22e
commit
06e7ad49fe
@ -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…
x
Reference in New Issue
Block a user