Merge pull request #722 from vicrodh/feature/internal/qt-ci-workflows

ci: make test-crates green on the Qt tree (wayland dev lib, SafeArea guard, shader gate toolchain)
This commit is contained in:
Victor RH authored and GitHub committed 2026-08-27 14:21:21 -06:00
commit 2772b7486f
5 files changed
+57 -13

No files matched your search

+18 -4
View File
@@ -167,10 +167,24 @@ ApplicationWindow {
// takes the safe area over from Qt entirely. `HeaderBar.chromeLeftInset`
// is where that responsibility is discharged: it reads
// `SafeArea.margins.left` to clear the traffic lights.
topPadding: 0
bottomPadding: 0
leftPadding: 0
rightPadding: 0
// The four Window paddings are Qt 6.9 API (SafeArea landed in 6.9). The
// Linux pin is Qt 6.8 LTS, where declaring them here refuses the whole
// component ("Cannot assign to non-existent property") — measured on the
// CI VM, 2026-08-25. They only matter on macOS, so they are set there,
// imperatively, from a Loader that never instantiates elsewhere.
Loader {
active: QbzShell.isMacos
sourceComponent: Component {
Item {
Component.onCompleted: {
window.topPadding = 0
window.bottomPadding = 0
window.leftPadding = 0
window.rightPadding = 0
}
}
}
}
color: "#1a1a1a"
// Phase 23: every domain singleton boots (registers its Qt-thread
+13 -1
View File
@@ -100,9 +100,21 @@ Rectangle {
// than the reference's estimate. The 78 stays only as the floor for the
// case where the margin reads 0 (nothing to lose, and it is the number
// the Slint build has used all along).
// `SafeArea` is Qt 6.9 API; the Linux pin is 6.8. The attached read lives
// in a macOS-only Loader so the binding never names the type elsewhere.
property real macSafeLeft: 0
Loader {
active: QbzShell.isMacos
sourceComponent: Component {
Item {
Component.onCompleted:
root.macSafeLeft = Qt.binding(function() { return root.SafeArea.margins.left })
}
}
}
readonly property int chromeLeftInset:
QbzShell.isMacos && !QbzShell.systemTitleBar
? Math.max(root.SafeArea.margins.left, 78)
? Math.max(root.macSafeLeft, 78)
: (root.chromeControls && root.wcOnLeft ? root.wcClusterWidth + 6 : 0)
// The section-nav dropdown (catalog + panel + open/close behaviour).