public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/plasma-breeze] rawhide: Removed unused patch
@ 2026-09-08 16:16 Steve Cossette
  0 siblings, 0 replies; only message in thread
From: Steve Cossette @ 2026-09-08 16:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/plasma-breeze
Branch : rawhide
Commit : f9153e49c104576eed3d814b1a49a024a02c3235
Author : Steve Cossette <farchord@gmail.com>
Date   : 2026-09-08T12:16:03-04:00
Stats  : +0/-50 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/plasma-breeze/c/f9153e49c104576eed3d814b1a49a024a02c3235?branch=rawhide

Log:
Removed unused patch

---
diff --git a/a74ad95349ec913f1042f5390dbd95a8341aea06.patch b/a74ad95349ec913f1042f5390dbd95a8341aea06.patch
deleted file mode 100644
index 58fd789..0000000
--- a/a74ad95349ec913f1042f5390dbd95a8341aea06.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From a74ad95349ec913f1042f5390dbd95a8341aea06 Mon Sep 17 00:00:00 2001
-From: Akseli Lahtinen <akselmo@akselmo.dev>
-Date: Fri, 14 Aug 2026 23:20:58 +0300
-Subject: [PATCH] Use font metrics to only inset where the text can spare it
-
-Applying the inset from aba0f922b unconditionally causes eliding in some
-cases. Check the font metrics instead and take the inset only from items
-that have the width to spare.
-
-BUG: 523118
-
-
-(cherry picked from commit f0b1d7534aa2356d7336241d0c7051522e8a6b68)
-
-Co-authored-by: Allen Hewes <rallenh@hotmail.com>
----
- kstyle/breezestyle.cpp | 17 +++++++++++++++--
- 1 file changed, 15 insertions(+), 2 deletions(-)
-
-diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp
-index 3a9096524..f0d4dfe45 100644
---- a/kstyle/breezestyle.cpp
-+++ b/kstyle/breezestyle.cpp
-@@ -1062,8 +1062,21 @@ QRect Style::subElementRect(SubElement element, const QStyleOption *option, cons
-         QRect rect = ParentStyleClass::subElementRect(element, option, widget);
-         if (viewItem) {
-             const QMargins margins = _helper->itemViewItemMargins(viewItem);
--            rect.setRight(rect.right() - margins.right() - Metrics::ItemView_ItemPaddingWidth);
--            rect.setLeft(rect.left() + margins.left() + Metrics::ItemView_ItemPaddingWidth);
-+            const int leftInset = margins.left() + Metrics::ItemView_ItemPaddingWidth;
-+            const int rightInset = margins.right() + Metrics::ItemView_ItemPaddingWidth;
-+
-+            // Use the font metrics to inset only as far as the text can spare,
-+            // so the inset itself cannot cause elision.
-+            const int textMargin = proxy()->pixelMetric(PM_FocusFrameHMargin, option, widget) + 1;
-+            const int available = rect.width() - 2 * textMargin; // viewItemDrawText() removes textMargin again
-+            const int required = viewItem->fontMetrics.horizontalAdvance(viewItem->text);
-+            const int inset = qBound(0, available - required, leftInset + rightInset);
-+
-+            // Shrink both sides in proportion so the text stays where it was.
-+            const int total = leftInset + rightInset;
-+            const int right = total > 0 ? inset * rightInset / total : 0;
-+            rect.setRight(rect.right() - right);
-+            rect.setLeft(rect.left() + (inset - right));
-             rect.moveTop(rect.top() + margins.top() - margins.bottom());
-         }
- 
--- 
-GitLab
-

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-08 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-08 16:16 [rpms/plasma-breeze] rawhide: Removed unused patch Steve Cossette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox