mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Second-pass a11y work across all 12 component groups. Every interactive element now has activeFocusOnTab, Keys.onReturnPressed/SpacePressed, and context-aware Accessible.name/description bindings. Highlights: - Dialogs: keyboard handlers with enabled-guard on confirm buttons - CDropdownMenu: full keyboard nav (Up/Down/Enter/Escape) - CLoginForm: explicit KeyNavigation.tab chain (username→password→submit) - CNotificationBell: dynamic "3 notifications"/"No notifications" name - CJobProgressBar: Accessible.minimumValue/maximumValue/currentValue - CExecutionStatusDot: "Execution status: Running/Passed/Failed" binding - CKeyboardShortcuts: invisible Repeater exposes all shortcuts to a11y tree - CDataTable rows: "Row N of M" descriptions - Canvas elements: Accessible.Canvas role + keyboard zoom (+/- keys) - DropdownExpandedList: focus-highlight extended to :activeFocus - Dynamic names reflect loading state (e.g. "Signing in, please wait") Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
813 B
QML
34 lines
813 B
QML
import QtQuick
|
|
|
|
Canvas {
|
|
id: root
|
|
objectName: "canvas_grid"
|
|
Accessible.role: Accessible.Canvas
|
|
Accessible.name: "Canvas Grid"
|
|
Accessible.description:
|
|
"Background grid overlay for the workflow canvas"
|
|
|
|
onPaint: {
|
|
var ctx = getContext("2d")
|
|
ctx.reset()
|
|
var gridSize = 50
|
|
ctx.strokeStyle = Qt.rgba(0.5, 0.5, 0.5, 0.1)
|
|
ctx.lineWidth = 1
|
|
|
|
for (var x = 0; x < width; x += gridSize) {
|
|
ctx.beginPath()
|
|
ctx.moveTo(x, 0)
|
|
ctx.lineTo(x, height)
|
|
ctx.stroke()
|
|
}
|
|
for (var y = 0; y < height; y += gridSize) {
|
|
ctx.beginPath()
|
|
ctx.moveTo(0, y)
|
|
ctx.lineTo(width, y)
|
|
ctx.stroke()
|
|
}
|
|
}
|
|
|
|
Component.onCompleted: requestPaint()
|
|
}
|