Bug 462721 - Icons next to filenames drawn at wrong position if desktop scaling is not exactly 100%
Summary: Icons next to filenames drawn at wrong position if desktop scaling is not exa...
Status: RESOLVED DUPLICATE of bug 462307
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.8.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-06 20:14 UTC by Adam
Modified: 2023-01-31 19:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Krusader 2.8.0 with missing icons (337.30 KB, image/png)
2022-12-06 20:14 UTC, Adam
Details
Desktop scale with 125% (134.15 KB, image/png)
2023-01-31 19:30 UTC, Benjamin Buch
Details
Desktop scale with 150% (154.96 KB, image/png)
2023-01-31 19:30 UTC, Benjamin Buch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2022-12-06 20:14:40 UTC
Created attachment 154370 [details]
Krusader 2.8.0 with missing icons

SUMMARY
After upgrade from Krusader 2.7.2 to 2.8.0 I have problem with missing icons next to filenames. This happens only when I have in "Display Configuration" set "Global scale" to 200%. If I set "Global scale" to 100%, then icons are shown. I did not try fractional scaling.

STEPS TO REPRODUCE
1. Set "Global scale" to 200%
2. Open Krusader


SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Changing icon size, switching between "Detailed view" and "Brief view" does not help, icons are always missing. I attach screenshot of how it looks. The place where icons should appear is way wider than it was before.
Comment 1 sa666666 2022-12-09 21:23:31 UTC
I commented on this in https://bugs.kde.org/show_bug.cgi?id=462307 too.
Comment 2 Adam 2022-12-21 19:53:37 UTC
The problem appears to be because of this commit: https://invent.kde.org/utilities/krusader/-/commit/0f147181fd41e5a2a8793eaeeb00a071fe161a6a

I have removed this line:

QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);

Recompiled Krusader, then my icons are back. Icons are a bit blurry, like it was in previous releases, but better have blurry icons than no icons at all.
Comment 3 Benjamin Buch 2023-01-31 19:30:29 UTC
Created attachment 155832 [details]
Desktop scale with 125%
Comment 4 Benjamin Buch 2023-01-31 19:30:51 UTC
Created attachment 155833 [details]
Desktop scale with 150%
Comment 5 Benjamin Buch 2023-01-31 19:31:16 UTC
At desktop scaling of 125% and 150% you can see how the icons move further and further up. Since they are square, they disappear at 200%.

Obviously the position at which they are drawn is not correct. The icon width is also calculated incorrectly, because the icon field gets disproportionately wider with increasing scaling.
Comment 6 Benjamin Buch 2023-01-31 19:37:11 UTC

*** This bug has been marked as a duplicate of bug 462307 ***