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)
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
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.