diff options
| author | Oleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io> | 2025-06-11 14:49:19 +0200 |
|---|---|---|
| committer | Oleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io> | 2025-06-26 14:27:35 +0200 |
| commit | 6a49c7f19f514056a7029de6ae04b424e5affc5a (patch) | |
| tree | 14f518d06a67ac854089c5937b0d10933921e0f3 /src/corelib/global/qlogging.cpp | |
| parent | 635f79f16300ed4b53a6665c81d0a37a2de9d78e (diff) | |
Add more snippets sources from corelib to the build system
Trying to compile snippets and fixing some bugs with them.
Added some files and targets to CMakeList.txt.
Added SOURCES of files that triggers Widgets in CMakeList.txt.
Handled "no widgets" and "no qml" cases for snippets compiling.
Relocated the necessary header file for qtcast.
All others are just small fixes.
Update: fixed path to the qlogging snippet in docs
Task-number: QTBUG-137566
Change-Id: I6c6068790bf24ca88072cf8ca5c33b1401551452
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
| -rw-r--r-- | src/corelib/global/qlogging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 8373f63b86c..55dadf4d6f9 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -379,7 +379,7 @@ using namespace QtPrivate; One example of direct use is to forward errors that stem from a scripting language, e.g. QML: - \snippet code/qlogging/qlogging.cpp 1 + \snippet qlogging/qlogging.cpp 1 \sa QMessageLogContext, qDebug(), qInfo(), qWarning(), qCritical(), qFatal() */ @@ -449,7 +449,7 @@ void QMessageLogger::info(const char *msg, ...) const This is a typedef for a pointer to a function with the following signature: - \snippet code/qlogging/qlogging.cpp 2 + \snippet qlogging/qlogging.cpp 2 The \c Q_DECLARE_LOGGING_CATEGORY macro generates a function declaration with this signature, and \c Q_LOGGING_CATEGORY generates its definition. |
