From 07e7bdef28716beada6ab24c156b6c78f405724e Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 26 Mar 2026 15:11:34 +0100 Subject: libqmenumodel/src: Fix build errors with Qt6 - Forward declarations of classes without corresponding imports seemed to mess with moc compilation. Switch to importing the corresponding headers, and only add forward-declarations where necessary (with a comment). - Adjust to some Qt constructors that handle char/char* being hidden by explicitly making QChar/QString. --- libqmenumodel/src/qdbusactiongroup.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libqmenumodel/src/qdbusactiongroup.h') diff --git a/libqmenumodel/src/qdbusactiongroup.h b/libqmenumodel/src/qdbusactiongroup.h index d588b8e..6383e6a 100644 --- a/libqmenumodel/src/qdbusactiongroup.h +++ b/libqmenumodel/src/qdbusactiongroup.h @@ -25,8 +25,11 @@ #include #include +#include "actionstateparser.h" + +// cyclical includes, forward-declare class QStateAction; -class ActionStateParser; +#include "qstateaction.h" typedef char gchar; typedef void* gpointer; -- cgit v1.2.3