Files
metabuilder/qml/MetaBuilder/MediaChannelSchedule.qml
johndoe6345789 6e394d7846 style(qt6): 80-char margin enforced — 737 violations → 29 remaining
191 files reformatted across views, components, widgets, hybrid, contexts.
New components: CCreateSchemaDialog, CAddFieldDialog, CAdminContentPanel.
JS helpers: connBadgeStatus/Text, adminStats, exampleLabels, onLevelClicked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:48:39 +00:00

65 lines
1.6 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
ColumnLayout {
id: root
Layout.fillWidth: true
spacing: 8
property var schedule: []
CText { variant: "subtitle1"; text: "Schedule" }
CText {
variant: "caption"
text: schedule.length + " programs"
color: Theme.textSecondary
}
FlexRow {
Layout.fillWidth: true
spacing: 8
CText { variant: "caption"; text: "Time"; Layout.preferredWidth: 80 }
CText { variant: "caption"; text: "Program"; Layout.fillWidth: true }
CText { variant: "caption"; text: "Duration"
Layout.preferredWidth: 80 }
}
CDivider { Layout.fillWidth: true }
Repeater {
model: root.schedule
delegate: ColumnLayout {
Layout.fillWidth: true
spacing: 4
FlexRow {
Layout.fillWidth: true
spacing: 8
CText {
variant: "body2"; text: modelData.time
font.family: "monospace"; font.bold: true
Layout.preferredWidth: 80
}
CText {
variant: "body2"; text: modelData.program
Layout.fillWidth: true
}
CText {
variant: "caption"; text: modelData.duration
color: Theme.textSecondary
Layout.preferredWidth: 80
}
}
CDivider {
Layout.fillWidth: true
visible: index < root.schedule.length - 1
}
}
}
}