git: 61758cbe744d - main - graphics/phototonic: Fix build with Qt 6.12
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Dec 2026 07:54:09 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=61758cbe744d5369457011fd41778ad3fd8557f5
commit 61758cbe744d5369457011fd41778ad3fd8557f5
Author: Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2026-12-03 03:39:55 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2026-12-03 07:38:34 +0000
graphics/phototonic: Fix build with Qt 6.12
With hat: kde@
---
graphics/phototonic/files/patch-IconProvider.cpp | 14 ++++++++++++++
graphics/phototonic/files/patch-IconProvider.h | 21 +++++++++++++++++++++
2 files changed, 35 insertions(+)
diff --git a/graphics/phototonic/files/patch-IconProvider.cpp b/graphics/phototonic/files/patch-IconProvider.cpp
new file mode 100644
index 000000000000..2b0ab398d089
--- /dev/null
+++ b/graphics/phototonic/files/patch-IconProvider.cpp
@@ -0,0 +1,14 @@
+Fix build with Qt >= 6.12.0
+
+Forward declaration of 'QFileInfo'
+
+--- IconProvider.cpp.orig 2026-10-30 14:59:57 UTC
++++ IconProvider.cpp
+@@ -1,5 +1,7 @@
+ #include "IconProvider.h"
+
++#include <QFileInfo>
++
+ QIcon IconProvider::icon(const QFileInfo &info) const
+ {
+ if (info.filePath().endsWith('/') || info.isDir()) {
diff --git a/graphics/phototonic/files/patch-IconProvider.h b/graphics/phototonic/files/patch-IconProvider.h
new file mode 100644
index 000000000000..3e5475895e49
--- /dev/null
+++ b/graphics/phototonic/files/patch-IconProvider.h
@@ -0,0 +1,21 @@
+Fix build with Qt >= 6.12.0
+
+Forward declaration of 'QHash'
+
+--- IconProvider.h.orig 2026-10-30 14:59:57 UTC
++++ IconProvider.h
+@@ -4,6 +4,7 @@
+
+ #pragma once
+ #include <QFileIconProvider>
++#include <QHash>
+ #include <QMimeDatabase>
+
+ class IconProvider : public QFileIconProvider
+@@ -24,4 +25,4 @@ class IconProvider : public QFileIconProvider (private
+ QMimeDatabase m_mimeDb;
+ };
+
+-#endif // ICONPROVIDER_H
+\ No newline at end of file
++#endif // ICONPROVIDER_H