diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-12-05 12:10:09 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-12-05 19:02:59 +0100 |
commit | ade429af3308e6254f46caf513925f00af42d6c2 (patch) | |
tree | c6f038d033eac90c16c01bf8f594c87c0e07c69f /src/corelib/doc | |
parent | f5f5a29bbac86d31420be8058d4b96b210d8560e (diff) |
Doc: Add documentation for qCFatal()
Change-Id: Iad9ea51285300eb06fdd7e68dd747702cb0a80e5
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r-- | src/corelib/doc/snippets/qloggingcategory/main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/corelib/doc/snippets/qloggingcategory/main.cpp b/src/corelib/doc/snippets/qloggingcategory/main.cpp index 33aba3bf35..8b3a61d51f 100644 --- a/src/corelib/doc/snippets/qloggingcategory/main.cpp +++ b/src/corelib/doc/snippets/qloggingcategory/main.cpp @@ -131,6 +131,20 @@ oldCategoryFilter = QLoggingCategory::installFilter(myCategoryFilter); //![15] } + { +//![16] + QLoggingCategory category("driver.usb"); + qCFatal(category) << "a fatal message. Program will be terminated!"; +//![16] + } + + { +//![17] + QLoggingCategory category("driver.usb"); + qCFatal(category, "a fatal message. Program will be terminated!"); +//![17] + } + return 0; } |