From 7a47bc3e4f04fd41fa7431c57c4dbf727e82b048 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 20 Jun 2024 14:30:02 +0200 Subject: [PATCH] Fix build error under Fedora 38 with 6.4.3 This will hopefully fix: ``` [ 56s] /home/abuild/rpmbuild/BUILD/syncthingtray-1718839812.fa5a7b5/redhat-linux-build/syncthingmodel/syncthingmodel-qt6_autogen/EWIEGA46WW/moc_syncthingfilemodel.cpp:177:5: required from here [ 56s] /usr/include/qt6/QtCore/qmetatype.h:842:23: error: invalid application of 'sizeof' to incomplete type 'QAction' [ 56s] 842 | static_assert(sizeof(T), "Type argument of Q_PROPERTY or Q_DECLARE_METATYPE(T*) must be fully defined"); ``` --- syncthingmodel/syncthingfilemodel.cpp | 1 - syncthingmodel/syncthingfilemodel.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/syncthingmodel/syncthingfilemodel.cpp b/syncthingmodel/syncthingfilemodel.cpp index 345c241..75e048b 100644 --- a/syncthingmodel/syncthingfilemodel.cpp +++ b/syncthingmodel/syncthingfilemodel.cpp @@ -11,7 +11,6 @@ #include -#include #include #include #include diff --git a/syncthingmodel/syncthingfilemodel.h b/syncthingmodel/syncthingfilemodel.h index ff91bc8..0a715e5 100644 --- a/syncthingmodel/syncthingfilemodel.h +++ b/syncthingmodel/syncthingfilemodel.h @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -15,8 +16,6 @@ #include #include -QT_FORWARD_DECLARE_CLASS(QAction) - class ModelTests; namespace Data {