Bug 476091

Summary: Anchors bug in PageRowGlobalToolBarUI
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: ratijas <me>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: me, nate, notmart
Priority: NOR Keywords: qt6
Version First Reported In: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ratijas 2023-10-25 16:46:40 UTC
SUMMARY

file:///usr/local/kde6/lib/qml/org/kde/kirigami/private/globaltoolbar/PageRowGlobalToolBarUI.qml:55:5: QML Rectangle: Cannot specify top, bottom, and verticalCenter anchors at the same time.

Are the anchors being assigned some conditional expressions without an atomic state machine?

STEPS TO REPRODUCE
1. Open any QML based app with a global toolbar, such as Kirigami Gallery or QML based KCM in System Settings

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Comment 1 Joshua Goins 2023-11-08 20:16:06 UTC
Git commit acef01e6996b231945a03f510fb95fc424334c64 by Joshua Goins.
Committed on 08/11/2023 at 21:16.
Pushed by redstrate into branch 'master'.

Don't set top and bottom anchors since verticalCenter is used

AbstractApplicationHeader sets verticalCenter on its children, so remove
the explicit top/bottom anchors.

M  +0    -2    src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml

https://invent.kde.org/frameworks/kirigami/-/commit/acef01e6996b231945a03f510fb95fc424334c64