summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/readmail.cpp
diff options
context:
space:
mode:
authorDamien Caliste <[email protected]>2025-05-23 09:42:55 +0200
committerDamien Caliste <[email protected]>2025-06-13 18:11:12 +0200
commit8e1451a83820d5ebf28097ee83444f295752f252 (patch)
treea5ed1fe8df6304382656d3094f24306b58c1a780 /examples/qtmail/readmail.cpp
parentc5a923b12d749a478c15023967689a0f095b9182 (diff)
Rewrite logging with QLoggingCategory
Replace the custom logging mechanism with QLoggingCategory. Also declare the warnings with the proper category. Change-Id: If87d53d27ea0c65abd434af9f99fe49ce634d6dd Reviewed-by: Pekka Vuorela <[email protected]>
Diffstat (limited to 'examples/qtmail/readmail.cpp')
-rw-r--r--examples/qtmail/readmail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qtmail/readmail.cpp b/examples/qtmail/readmail.cpp
index ed71aedd..112c2095 100644
--- a/examples/qtmail/readmail.cpp
+++ b/examples/qtmail/readmail.cpp
@@ -255,7 +255,7 @@ void ReadMail::updateView(QMailViewerFactory::PresentationType type)
QMailViewerInterface* view = viewer(content, type);
if (!view) {
- qMailLog(Messaging) << "Unable to view message" << mail.id() << "with content:" << content;
+ qCWarning(lcMessaging) << "Unable to view message" << mail.id() << "with content:" << content;
return;
}