mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
Continues the a11y pass from the previous commit — adds objectName, Accessible.role, Accessible.name to all remaining qml/MetaBuilder/, qml/qt6/, and qml/widgets/ files. Widget files also get activeFocusOnTab on interactive elements and dynamic Accessible.name bindings. Cleans up redundant addImportPath(projectRoot) call in main.cpp. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
1.1 KiB
QML
47 lines
1.1 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
Rectangle {
|
|
id: root
|
|
objectName: "tab_god_users"
|
|
Accessible.role: Accessible.PageTab
|
|
Accessible.name: "God Users"
|
|
color: "transparent"
|
|
|
|
// ── Data ──
|
|
property var godUsers: []
|
|
|
|
// ── Signals ──
|
|
signal manageUser(var user)
|
|
|
|
ScrollView {
|
|
anchors.fill: parent
|
|
clip: true
|
|
ColumnLayout {
|
|
width: parent.width
|
|
spacing: 16
|
|
|
|
CText { variant: "h3"; text: "God Users (Level 4+)" }
|
|
CText {
|
|
variant: "body2"
|
|
text: "All users with god-level (L4) or super-god-level (L5)
|
|
platform access across all tenants."
|
|
wrapMode: Text.Wrap; Layout.fillWidth: true
|
|
color: Theme.textSecondary
|
|
}
|
|
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
Repeater {
|
|
model: root.godUsers
|
|
delegate: CGodUserCard {
|
|
user: modelData
|
|
onDemote: root.manageUser(modelData)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|