[frameworks/kcalendarcore] src: Make ScheduleMessage a Q_GADGET

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit dd7c66f289e2b77e802cd9cd1cbcde2661f1c010 by Volker Krause.
Committed on 20/07/2026 at 15:49.
Pushed by cullmann into branch 'master'.

Make ScheduleMessage a Q_GADGET

Makes its Status enum printable as string in debug output.

M  +2    -0    src/schedulemessage.cpp
M  +2    -0    src/schedulemessage.h

https://invent.kde.org/frameworks/kcalendarcore/-/commit/dd7c66f289e2b77e802cd9cd1cbcde2661f1c010

diff --git a/src/schedulemessage.cpp b/src/schedulemessage.cpp
index 1acc27e23..5e29fc21f 100644
--- a/src/schedulemessage.cpp
+++ b/src/schedulemessage.cpp
@@ -88,3 +88,5 @@ QString ScheduleMessage::error() const
 {
     return d->mError;
 }
+
+#include "moc_schedulemessage.cpp"
diff --git a/src/schedulemessage.h b/src/schedulemessage.h
index a2aa0d4f2..8709ef452 100644
--- a/src/schedulemessage.h
+++ b/src/schedulemessage.h
@@ -63,6 +63,7 @@ enum iTIPMethod {
 */
 class KCALENDARCORE_EXPORT ScheduleMessage
 {
+    Q_GADGET
 public:
     /*!
       \enum KCalendarCore::ScheduleMessage::Status
@@ -89,6 +90,7 @@ public:
         RequestUpdate,
         Unknown,
     };
+    Q_ENUM(Status)
 
     /*!
       A shared pointer to a ScheduleMessage.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.