public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zephyr Lykos <git@mochaa.ws>
To: git-commits@fedoraproject.org
Subject: [rpms/qt6ct] epel9: Wrap forward declaration within QT_NAMESPACE
Date: Thu, 08 Oct 2026 20:05:59 GMT [thread overview]
Message-ID: <179148995957.1.16415223557413497704.rpms-qt6ct-2b1c5a85c62b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/qt6ct
Branch : epel9
Commit : 2b1c5a85c62b4137ca7895c737ceb09789696bd1
Author : Zephyr Lykos <git@mochaa.ws>
Date : 2025-09-09T04:19:59+08:00
Stats : +163/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/qt6ct/c/2b1c5a85c62b4137ca7895c737ceb09789696bd1?branch=epel9
Log:
Wrap forward declaration within QT_NAMESPACE
---
diff --git a/0001-build-refactor-CMake-build-rules.patch b/0001-build-refactor-CMake-build-rules.patch
index c1a4b76..36f72fe 100644
--- a/0001-build-refactor-CMake-build-rules.patch
+++ b/0001-build-refactor-CMake-build-rules.patch
@@ -1,7 +1,7 @@
From 37b5df86077954ff9575f78b485a7205858cc676 Mon Sep 17 00:00:00 2001
From: Zephyr Lykos <git@mochaa.ws>
Date: Mon, 8 Sep 2025 16:34:18 +0800
-Subject: [PATCH] build: refactor CMake build rules
+Subject: [PATCH 1/2] build: refactor CMake build rules
---
CMakeLists.txt | 55 ++++++---------------------
diff --git a/0002-Wrap-forward-declaration-within-QT_NAMESPACE.patch b/0002-Wrap-forward-declaration-within-QT_NAMESPACE.patch
new file mode 100644
index 0000000..f26b51b
--- /dev/null
+++ b/0002-Wrap-forward-declaration-within-QT_NAMESPACE.patch
@@ -0,0 +1,161 @@
+From eeb6172912b878d7ccb14d69682b73f3e3599826 Mon Sep 17 00:00:00 2001
+From: Zephyr Lykos <git@mochaa.ws>
+Date: Mon, 8 Sep 2025 21:18:15 +0800
+Subject: [PATCH 2/2] Wrap forward declaration within QT_NAMESPACE
+
+---
+ src/qt6ct/appearancepage.h | 4 ++++
+ src/qt6ct/fontconfigdialog.h | 4 ++++
+ src/qt6ct/fontspage.h | 4 ++++
+ src/qt6ct/iconthemepage.h | 4 ++++
+ src/qt6ct/mainwindow.h | 4 ++++
+ src/qt6ct/paletteeditdialog.h | 4 ++++
+ src/qt6ct/qsseditordialog.h | 4 ++++
+ src/qt6ct/qsspage.h | 4 ++++
+ 8 files changed, 32 insertions(+)
+
+diff --git a/src/qt6ct/appearancepage.h b/src/qt6ct/appearancepage.h
+index 8e4902e..ff9d0be 100644
+--- a/src/qt6ct/appearancepage.h
++++ b/src/qt6ct/appearancepage.h
+@@ -36,9 +36,13 @@ class AppearancePage;
+ class PreviewForm;
+ }
+
++QT_BEGIN_NAMESPACE
++
+ class QStyle;
+ class QAction;
+
++QT_END_NAMESPACE
++
+ class AppearancePage : public TabPage
+ {
+ Q_OBJECT
+diff --git a/src/qt6ct/fontconfigdialog.h b/src/qt6ct/fontconfigdialog.h
+index f391f34..0aea541 100644
+--- a/src/qt6ct/fontconfigdialog.h
++++ b/src/qt6ct/fontconfigdialog.h
+@@ -35,8 +35,12 @@ namespace Ui {
+ class FontConfigDialog;
+ }
+
++QT_BEGIN_NAMESPACE
++
+ class QXmlStreamWriter;
+
++QT_END_NAMESPACE
++
+ class FontConfigDialog : public QDialog
+ {
+ Q_OBJECT
+diff --git a/src/qt6ct/fontspage.h b/src/qt6ct/fontspage.h
+index 276c741..cf3b95c 100644
+--- a/src/qt6ct/fontspage.h
++++ b/src/qt6ct/fontspage.h
+@@ -35,9 +35,13 @@ namespace Ui {
+ class FontsPage;
+ }
+
++QT_BEGIN_NAMESPACE
++
+ class QLabel;
+ class QSettings;
+
++QT_END_NAMESPACE
++
+ class FontsPage : public TabPage
+ {
+ Q_OBJECT
+diff --git a/src/qt6ct/iconthemepage.h b/src/qt6ct/iconthemepage.h
+index 9ad3580..66596e9 100644
+--- a/src/qt6ct/iconthemepage.h
++++ b/src/qt6ct/iconthemepage.h
+@@ -37,10 +37,14 @@ namespace Ui {
+ class IconThemePage;
+ }
+
++QT_BEGIN_NAMESPACE
++
+ class QTreeWidgetItem;
+ class QProgressBar;
+ class QThread;
+
++QT_END_NAMESPACE
++
+ class IconThemePage : public TabPage
+ {
+ Q_OBJECT
+diff --git a/src/qt6ct/mainwindow.h b/src/qt6ct/mainwindow.h
+index 5d1e690..b36565f 100644
+--- a/src/qt6ct/mainwindow.h
++++ b/src/qt6ct/mainwindow.h
+@@ -32,8 +32,12 @@
+ #include <QWidget>
+ #include <QStringList>
+
++QT_BEGIN_NAMESPACE
++
+ class QAbstractButton;
+
++QT_END_NAMESPACE
++
+ namespace Ui {
+ class MainWindow;
+ }
+diff --git a/src/qt6ct/paletteeditdialog.h b/src/qt6ct/paletteeditdialog.h
+index b7ea9b5..e18947e 100644
+--- a/src/qt6ct/paletteeditdialog.h
++++ b/src/qt6ct/paletteeditdialog.h
+@@ -32,9 +32,13 @@
+ #include <QDialog>
+ #include <QPalette>
+
++QT_BEGIN_NAMESPACE
++
+ class QTableWidgetItem;
+ class QStyle;
+
++QT_END_NAMESPACE
++
+ namespace Ui {
+ class PaletteEditDialog;
+ }
+diff --git a/src/qt6ct/qsseditordialog.h b/src/qt6ct/qsseditordialog.h
+index bd8d8a4..afe3bea 100644
+--- a/src/qt6ct/qsseditordialog.h
++++ b/src/qt6ct/qsseditordialog.h
+@@ -36,8 +36,12 @@ namespace Ui {
+ class QSSEditorDialog;
+ }
+
++QT_BEGIN_NAMESPACE
++
+ class QAbstractButton;
+
++QT_END_NAMESPACE
++
+ class QSSEditorDialog : public QDialog
+ {
+ Q_OBJECT
+diff --git a/src/qt6ct/qsspage.h b/src/qt6ct/qsspage.h
+index a5e6693..7131ad7 100644
+--- a/src/qt6ct/qsspage.h
++++ b/src/qt6ct/qsspage.h
+@@ -35,9 +35,13 @@ namespace Ui {
+ class QSSPage;
+ }
+
++QT_BEGIN_NAMESPACE
++
+ class QListWidgetItem;
+ class QMenu;
+
++QT_END_NAMESPACE
++
+ class QSSPage : public TabPage
+ {
+ Q_OBJECT
+--
+2.51.0
+
diff --git a/qt6ct.spec b/qt6ct.spec
index e073f12..0db2336 100644
--- a/qt6ct.spec
+++ b/qt6ct.spec
@@ -16,6 +16,7 @@ Source0: %{forgesource}
# https://www.opencode.net/trialuser/qt6ct/-/merge_requests/9
Patch0: qt6ct-kde.patch
Patch1: 0001-build-refactor-CMake-build-rules.patch
+Patch2: 0002-Wrap-forward-declaration-within-QT_NAMESPACE.patch
BuildRequires: cmake
BuildRequires: extra-cmake-modules
reply other threads:[~2026-10-08 20:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179148995957.1.16415223557413497704.rpms-qt6ct-2b1c5a85c62b@fedoraproject.org \
--to=git@mochaa.ws \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox