diff options
author | Axel Spoerl <[email protected]> | 2022-09-23 16:50:09 +0200 |
---|---|---|
committer | Axel Spoerl <[email protected]> | 2022-09-24 07:06:42 +0200 |
commit | d46f317c8e69376b5f124fba3c42fff5e394699f (patch) | |
tree | 40e80c757178d8ab0c51189d1099220a515c4529 /src/gui/platform/unix/qunixnativeinterface.cpp | |
parent | d35feca20c02539d04f10c23fc057454cb3fcc12 (diff) |
Fix native titlebar offset and resizing upon unplugging dock widgets
When a dock widget received a native title bar upon unplugging, the
position of the newly unplugged dock widget was calculated without
taking the title bar's height into consideration.
Furthermore, dock widgets grew by the separator size upon undocking.
That is fixed by 10a143ccd762c810f4096a5b2e986d16ea0107ad by relying
on the assumption that passing a QRect() to the unplugging method
leads to un unchanged dock widget geometry.
However, when more than one dock widgets are docked in the same
main window dock on macOS or Windows, the size is stil increased.
This patch corrects the position offset for native title bars.
It also corrects an unplugged dock widget's geometry by the sparator's
size.
Fixes: QTBUG-106530
Fixes: QTBUG-106531
Pick-to: 6.4 6.2 5.15
Change-Id: Ia4bcb556841e14146f19c1377f4010d5ae009bcf
Reviewed-by: Shawn Rutledge <[email protected]>
Diffstat (limited to 'src/gui/platform/unix/qunixnativeinterface.cpp')
0 files changed, 0 insertions, 0 deletions