mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +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>
79 lines
2.1 KiB
QML
79 lines
2.1 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
FlexRow {
|
|
id: root
|
|
objectName: "row_database_stats"
|
|
Accessible.role: Accessible.Pane
|
|
Accessible.name: "Database Statistics"
|
|
Layout.fillWidth: true
|
|
spacing: 12
|
|
|
|
property string totalRecords: "0"
|
|
property string totalSize: "0 KB"
|
|
property string activeBackend: ""
|
|
property string adapterPattern: ""
|
|
|
|
CCard {
|
|
Layout.fillWidth: true
|
|
implicitHeight: 72
|
|
Accessible.role: Accessible.StaticText
|
|
Accessible.name: "Total Records: " + root.totalRecords
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 12
|
|
spacing: 4
|
|
CText { variant: "caption"; text: "Total Records" }
|
|
CText { variant: "h4"; text: root.totalRecords }
|
|
}
|
|
}
|
|
|
|
CCard {
|
|
Layout.fillWidth: true
|
|
implicitHeight: 72
|
|
Accessible.role: Accessible.StaticText
|
|
Accessible.name: "Total Size: " + root.totalSize
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 12
|
|
spacing: 4
|
|
CText { variant: "caption"; text: "Total Size" }
|
|
CText { variant: "h4"; text: root.totalSize }
|
|
}
|
|
}
|
|
|
|
CCard {
|
|
Layout.fillWidth: true
|
|
implicitHeight: 72
|
|
Accessible.role: Accessible.StaticText
|
|
Accessible.name: "Active Backend: " + root.activeBackend
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 12
|
|
spacing: 4
|
|
CText { variant: "caption"; text: "Active Backend" }
|
|
CText { variant: "h4"; text: root.activeBackend }
|
|
}
|
|
}
|
|
|
|
CCard {
|
|
Layout.fillWidth: true
|
|
implicitHeight: 72
|
|
Accessible.role: Accessible.StaticText
|
|
Accessible.name: "Adapter Pattern: " + root.adapterPattern
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 12
|
|
spacing: 4
|
|
CText { variant: "caption"; text: "Adapter Pattern" }
|
|
CText { variant: "h4"; text: root.adapterPattern }
|
|
}
|
|
}
|
|
}
|