Bug 476715 - Brush editor window: scaling issue when brush tip name is too long
Summary: Brush editor window: scaling issue when brush tip name is too long
Status: RESOLVED INTENTIONAL
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 5.2.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-08 18:01 UTC by paleh
Modified: 2024-09-06 11:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
video demonstration (1.51 MB, video/webm)
2023-11-08 18:01 UTC, paleh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paleh 2023-11-08 18:01:17 UTC
Created attachment 162952 [details]
video demonstration

SUMMARY
Brush tips with long names (for example those generated as stamps) force elements the brush editor window to scale to an unusable dimension. The user have to manually rescale the window, which takes time and worsens the quality of life.

STEPS TO REPRODUCE
(0. It's probably better to to set up a fresh resource folder)
1. Open the brush editor for a pixel engine brush
2. Go to Brush tip->Predefined
3. Click on "Stamp". Leave the name field empty.
4. Click on "Save New Brush Preset".

OBSERVED RESULT
After step 3 the newly generated brush tip name showed in the right side of the screen is abbreviated as "xxxx....xxxx" (although, as evident from the video, it is a little bit too long, forcing the list of brush tips on the left to rescale). After step 4 it is no longer abbreviated, making the element of the UI containing it to scale to unusable dimensions.

EXPECTED RESULT
The width of the cell with brush tip information should not depend on the length of the name.
The displayed name should be always abbreviated to fit inside this cell.

SOFTWARE/OS VERSIONS
Linux: Ubuntu 22.04
Wayland
Qt Version: 5.15.7
Appimage
single screen 1920x1080

ADDITIONAL INFORMATION
It was present in 5.1.5 but wasn't that much of a problem, because the full window would rescale.
Present on master (krita-5.3.0-prealpha-e6ff66812a)
Comment 1 lverkdv 2023-11-20 08:13:28 UTC
The name is too long (is not abbreviated) and the scroll area resize after browsing the items. The abbreviation worked fine on version 5.2.1. It's a little bit annoying, minor bug.
Krita Version: 5.3.0-prealpha (git 207c89b)
Qt  Version (loaded): 5.15.7
CPU: x86_64
Kernel Type: linux
Kernel Version: 6.6.1-arch1-1
Desktop: KDE
Appimage build: Yes
Comment 2 Halla Rempt 2024-09-06 11:26:53 UTC
I can reproduce it, but only a little bit. The name is abbreviated already -- see the three dots in the middle -- so this is bascially how the Qt layout system and the squeezed text box work together. I don't think it's worthwhile to spend more time on it.