File fix-Qt_NoBrush.patch of Package fooyin

From e44e08abb33f01fe85cc896170c55dbf732ffcc9 Mon Sep 17 00:00:00 2001
From: Luke Taylor <LukeT1@proton.me>
Date: Sun, 16 Feb 2025 17:35:12 +0000
Subject: [PATCH] [gui] Clang-Tidy fixes

---
 src/gui/dirbrowser/dirdelegate.cpp                       | 2 +-
 src/gui/librarytree/librarytreedelegate.cpp              | 2 +-
 src/gui/playlist/organiser/playlistorganiserdelegate.cpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gui/dirbrowser/dirdelegate.cpp b/src/gui/dirbrowser/dirdelegate.cpp
index 1528ba8ed..9a6ccfbf8 100644
--- a/src/gui/dirbrowser/dirdelegate.cpp
+++ b/src/gui/dirbrowser/dirdelegate.cpp
@@ -34,7 +34,7 @@ void DirDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, c
 
     if(opt.backgroundBrush.style() != Qt::NoBrush) {
         painter->fillRect(option.rect, opt.backgroundBrush);
-        opt.backgroundBrush = {};
+        opt.backgroundBrush = QBrush{};
     }
     style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, option.widget);
 
diff --git a/src/gui/librarytree/librarytreedelegate.cpp b/src/gui/librarytree/librarytreedelegate.cpp
index 66ed77bc9..9db3c9b0b 100644
--- a/src/gui/librarytree/librarytreedelegate.cpp
+++ b/src/gui/librarytree/librarytreedelegate.cpp
@@ -42,7 +42,7 @@ void LibraryTreeDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
 
     if(opt.backgroundBrush.style() != Qt::NoBrush) {
         painter->fillRect(option.rect, opt.backgroundBrush);
-        opt.backgroundBrush = {};
+        opt.backgroundBrush = QBrush{};
     }
     style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, option.widget);
 
diff --git a/src/gui/playlist/organiser/playlistorganiserdelegate.cpp b/src/gui/playlist/organiser/playlistorganiserdelegate.cpp
index 6ef53c8d6..1c96c36ea 100644
--- a/src/gui/playlist/organiser/playlistorganiserdelegate.cpp
+++ b/src/gui/playlist/organiser/playlistorganiserdelegate.cpp
@@ -35,7 +35,7 @@ void PlaylistOrganiserDelegate::paint(QPainter* painter, const QStyleOptionViewI
 
     if(opt.backgroundBrush.style() != Qt::NoBrush) {
         painter->fillRect(option.rect, opt.backgroundBrush);
-        opt.backgroundBrush = {};
+        opt.backgroundBrush = QBrush{};
     }
     style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, option.widget);
 
From 7e1463b9f3410e9c531e53cd2227e5cef5d2d6c9 Mon Sep 17 00:00:00 2001
From: Luke Taylor <LukeT1@proton.me>
Date: Thu, 29 May 2025 20:56:28 +0100
Subject: [PATCH] [gui] Clear background brush with Qt::NoBrush

---
 src/gui/dirbrowser/dirdelegate.cpp                       | 2 +-
 src/gui/librarytree/librarytreedelegate.cpp              | 2 +-
 src/gui/playlist/organiser/playlistorganiserdelegate.cpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gui/dirbrowser/dirdelegate.cpp b/src/gui/dirbrowser/dirdelegate.cpp
index 9a6ccfbf..22a40d4b 100644
--- a/src/gui/dirbrowser/dirdelegate.cpp
+++ b/src/gui/dirbrowser/dirdelegate.cpp
@@ -34,7 +34,7 @@ void DirDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, c
 
     if(opt.backgroundBrush.style() != Qt::NoBrush) {
         painter->fillRect(option.rect, opt.backgroundBrush);
-        opt.backgroundBrush = QBrush{};
+        opt.backgroundBrush = Qt::NoBrush;
     }
     style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, option.widget);
 
diff --git a/src/gui/librarytree/librarytreedelegate.cpp b/src/gui/librarytree/librarytreedelegate.cpp
index 9db3c9b0..82871536 100644
--- a/src/gui/librarytree/librarytreedelegate.cpp
+++ b/src/gui/librarytree/librarytreedelegate.cpp
@@ -42,7 +42,7 @@ void LibraryTreeDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
 
     if(opt.backgroundBrush.style() != Qt::NoBrush) {
         painter->fillRect(option.rect, opt.backgroundBrush);
-        opt.backgroundBrush = QBrush{};
+        opt.backgroundBrush = Qt::NoBrush;
     }
     style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, option.widget);
 
diff --git a/src/gui/playlist/organiser/playlistorganiserdelegate.cpp b/src/gui/playlist/organiser/playlistorganiserdelegate.cpp
index 1c96c36e..bd11b88e 100644
--- a/src/gui/playlist/organiser/playlistorganiserdelegate.cpp
+++ b/src/gui/playlist/organiser/playlistorganiserdelegate.cpp
@@ -35,7 +35,7 @@ void PlaylistOrganiserDelegate::paint(QPainter* painter, const QStyleOptionViewI
 
     if(opt.backgroundBrush.style() != Qt::NoBrush) {
         painter->fillRect(option.rect, opt.backgroundBrush);
-        opt.backgroundBrush = QBrush{};
+        opt.backgroundBrush = Qt::NoBrush;
     }
     style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, option.widget);
 
openSUSE Build Service is sponsored by