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

--- Comment #9 from Akseli Lahtinen <akse...@akselmo.dev> ---
Git commit 090042a7e51c21e40b8866b35d5301da3d2b7677 by Akseli Lahtinen.
Committed on 03/10/2024 at 12:13.
Pushed by akselmo into branch 'master'.

Create SelectableText, deprecate SelectableLabel

This creates a new SelectableText element that is supposed
to replace SelectableLabel due to resizing issues.

SelectableLabel uses TextArea, which has features Label does
not really need. TextArea also has issues when resizing,
since the ImplicitSize resizing is disabled after the initialization.
This can cause problems with dynamically changing content, where
the TextArea size wont update based on the content.

TextEdit has ImplicitSizes as read-only, but it resizes
automatically based on the text content. It's wrapped inside a Control.

SelectableText also has a simpler context menu, with only
Copy and SelectAll buttons.

I chose the name SelectableText since this is based on TextEdit, not
label.

M  +4    -0    src/CMakeLists.txt
M  +1    -1    src/controls/SelectableLabel.qml
A  +127  -0    src/controls/SelectableText.qml     [License: LGPL(v2.0+)]

https://invent.kde.org/frameworks/kirigami/-/commit/090042a7e51c21e40b8866b35d5301da3d2b7677

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to