Bug 472344 - bits view is painted improperly until window resized
Summary: bits view is painted improperly until window resized
Status: RESOLVED DUPLICATE of bug 453775
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 23.04.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-18 06:23 UTC by Nick Korotysh
Modified: 2024-09-07 22:55 UTC (History)
1 user (show)

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


Attachments
bits view is painted improperly (94.21 KB, image/png)
2023-07-18 06:23 UTC, Nick Korotysh
Details
possible fix (1014 bytes, patch)
2023-07-18 06:28 UTC, Nick Korotysh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Korotysh 2023-07-18 06:23:26 UTC
Created attachment 160347 [details]
bits view is painted improperly

SUMMARY
content of bits view looks truncated on app startup (see attached screenshot), window resize fixes it

STEPS TO REPRODUCE
1. open application in "Simple Mode" (default)
2. switch to "Numerical System Mode"
3. close the application
4. open application again

OBSERVED RESULT
content of bits view is truncated on the right side

EXPECTED RESULT
bits view should be painted correctly, as after switching modes

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux/X11
KDE Plasma Version:  5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
seems that problem in custom button implementation used in this view - it doesn't provide sizeHint() on which QLayout relies on. possible fix is attached.
Comment 1 Nick Korotysh 2023-07-18 06:28:06 UTC
Created attachment 160348 [details]
possible fix
Comment 2 Gabriel Barrantes 2024-09-07 22:55:04 UTC
Not quite the same issue but the fix would be the same.

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