Bug 481416 - After undocking the only toolbar on a window, the header toolbar theming remains
Summary: After undocking the only toolbar on a window, the header toolbar theming remains
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (other bugs)
Version First Reported In: master
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-16 14:50 UTC by Oliver Beard
Modified: 2024-02-16 19:54 UTC (History)
3 users (show)

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


Attachments
A demonstration of the bug in Kate according to the reproduction steps (76.52 KB, image/png)
2024-02-16 14:50 UTC, Oliver Beard
Details
...and in a basic QMainWindow (10.72 KB, image/png)
2024-02-16 14:51 UTC, Oliver Beard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Beard 2024-02-16 14:50:53 UTC
Created attachment 165859 [details]
A demonstration of the bug in Kate according to the reproduction steps

SUMMARY
When the ONLY toolbar remaining in the top toolbar area is undocked (i.e. dragged out of the window), the layout of the window appropriately adapts to the change, and fills the space. The theme header area does not properly react, and presumably still thinks the toolbar exists there until it is docked in the window. It shows a small strip overlapping window content where the toolbar would be.

I found this when messing around with my own app based around a QMainWindow.

The extra area disappears when the toolbar is docked again (appropriate to whether it is docked to the top or elsewhere).

STEPS TO REPRODUCE
1. Launch Kate (or a similar app)
2. Right click on the menu bar, and hide the Hamburger Menu Toolbar
3. Right click on the main toolbar and unlock it
4. Drag the toolbar out of the window

OBSERVED RESULT
See screenshots - the extra header area where the toolbar would be overlaps the content of the window which has appropriately reacted to the undocked toolbar.

EXPECTED RESULT
The extra header area for the toolbar is gone, as if the toolbar was not placed there (or the theme thinks it is)

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.93.0 (6.0 RC2)
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0beta2
Comment 1 Oliver Beard 2024-02-16 14:51:23 UTC
Created attachment 165860 [details]
...and in a basic QMainWindow
Comment 2 Nate Graham 2024-02-16 19:54:46 UTC
Can reproduce in Dolphin as well.