zint: fix build with qt 6.4

This commit is contained in:
Nick Cao 2022-09-29 21:41:56 +08:00
parent de795b62a7
commit d3d06877ba
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ozhXy7ftmGz1XvmF8AS1ifWJ3Q5hLSsysB8qLUP60n8=";
};
patches = [ ./qobject.patch ];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];

View File

@ -0,0 +1,12 @@
diff --git a/backend_qt/qzint.h b/backend_qt/qzint.h
index d57ab6a..62fb0a4 100644
--- a/backend_qt/qzint.h
+++ b/backend_qt/qzint.h
@@ -19,6 +19,7 @@
#ifndef QZINT_H
#define QZINT_H
+#include <QObject>
#include <QColor>
#include <QPainter>
#include "zint.h"