Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kompare for openSUSE:Factory checked in at 2026-06-29 17:28:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kompare (Old) and /work/SRC/openSUSE:Factory/.kompare.new.11887 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kompare" Mon Jun 29 17:28:36 2026 rev:159 rq:1361970 version:26.04.2 Changes: -------- --- /work/SRC/openSUSE:Factory/kompare/kompare.changes 2026-06-08 14:09:19.885281655 +0200 +++ /work/SRC/openSUSE:Factory/.kompare.new.11887/kompare.changes 2026-06-29 17:28:47.950845606 +0200 @@ -1,0 +2,5 @@ +Fri Jun 26 09:06:02 UTC 2026 - Jiri Slaby <[email protected]> + +- add AlignTop-the-text.patch to fix text clipping (kde#481778) + +------------------------------------------------------------------- New: ---- AlignTop-the-text.patch ----------(New B)---------- New: - add AlignTop-the-text.patch to fix text clipping (kde#481778) ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kompare.spec ++++++ --- /var/tmp/diff_new_pack.iKRNLI/_old 2026-06-29 17:28:48.490863934 +0200 +++ /var/tmp/diff_new_pack.iKRNLI/_new 2026-06-29 17:28:48.494864070 +0200 @@ -31,13 +31,14 @@ Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig Source2: applications.keyring %endif +Patch0: AlignTop-the-text.patch BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} BuildRequires: cmake(KF6Codecs) >= %{kf6_version} BuildRequires: cmake(KF6Config) >= %{kf6_version} BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version} BuildRequires: cmake(KF6DocTools) >= %{kf6_version} -BuildRequires: cmake(KF6IconThemes) >= %{kf6_version} BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6IconThemes) >= %{kf6_version} BuildRequires: cmake(KF6JobWidgets) >= %{kf6_version} BuildRequires: cmake(KF6Parts) >= %{kf6_version} BuildRequires: cmake(KF6TextEditor) >= %{kf6_version} ++++++ AlignTop-the-text.patch ++++++ From: Christoph Feck <[email protected]> Date: Fri, 1 Aug 2025 06:50:23 +0200 Subject: AlignTop the text References: kde#481778 Patch-mainline: no This comes from: https://bugs.kde.org/show_bug.cgi?id=481778#c20 There is a MR pending at: https://invent.kde.org/sdk/kompare/-/merge_requests/42 What worked for me is forcing Top alignment. I didn't really understand the logic behind paintHeight(), so the patch might be all wrong. Signed-off-by: Jiri Slaby <[email protected]> --- src/komparepart/komparelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komparepart/komparelistview.cpp b/src/komparepart/komparelistview.cpp index 61cd7bbd040e..3deb472df045 100644 --- a/src/komparepart/komparelistview.cpp +++ b/src/komparepart/komparelistview.cpp @@ -745,7 +745,7 @@ void KompareListViewLineItem::init(int line, DifferenceString* text) void KompareListViewLineItem::paintCell(QPainter* p, const QStyleOptionViewItem& option, int column) { int width = option.rect.width(); - Qt::Alignment align = option.displayAlignment; + Qt::Alignment align = option.displayAlignment & ~Qt::AlignVCenter | Qt::AlignTop; p->setRenderHint(QPainter::Antialiasing); p->translate(option.rect.topLeft()); -- 2.50.1
