[dolphin] [Bug 493279] Dolphin 'Information Panel' applies word wrap for file name, so copied name is word wrapped by newline symbols

Méven bugzilla_noreply at kde.org
Fri Sep 12 09:40:24 BST 2025


https://bugs.kde.org/show_bug.cgi?id=493279

Méven <meven at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/112f375
                   |                            |ec175e5aedfb58a3a3bf76535cc
                   |                            |959575

--- Comment #3 from Méven <meven at kde.org> ---
Git commit 112f375ec175e5aedfb58a3a3bf76535cc959575 by Méven Car, on behalf of
Weinan Li.
Committed on 12/09/2025 at 08:29.
Pushed by meven into branch 'master'.

informationpanel: use QTextEdit for filename display to avoid newlines in
copied text

QLabel does not support line wrapping at arbitrary positions. The original code
achieved word wrap by manually adding newline characters to the text, which
resulted in these newlines being included when the filename was selected and
copied.

This patch replaces QLabel with QTextEdit for filename display, leveraging
QTextEdit's built-in word wrap functionality that handles line breaks purely
for display without modifying the underlying text. This ensures copied
filenames remain free of unintended newlines.

M  +13   -24   src/panels/information/informationpanelcontent.cpp
M  +2    -1    src/panels/information/informationpanelcontent.h

https://invent.kde.org/system/dolphin/-/commit/112f375ec175e5aedfb58a3a3bf76535cc959575

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list