mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
88 files reformatted — zero logic changes: - All views, components, and JS modules wrapped to 80-char margin - Long property bindings, ternaries, and strings broken at natural points - Theme.qml theme definitions expanded to multi-line - StyleVariables tokens wrapped - Section comment rulers trimmed to 80 chars Trade-off: LOC increases from line wrapping (compact single-line properties now span 2-3 lines). Content unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
80 lines
1.9 KiB
QML
80 lines
1.9 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
CCard {
|
|
id: jobTable
|
|
Layout.fillWidth: true
|
|
|
|
property var jobs: []
|
|
|
|
signal cancelRequested(string jobId)
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 16
|
|
spacing: 12
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true
|
|
spacing: 12
|
|
|
|
CText { variant: "h4"; text: "Active Jobs" }
|
|
CText {
|
|
variant: "caption"
|
|
text: jobs.length + " total"
|
|
color: Theme.textSecondary
|
|
}
|
|
}
|
|
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true
|
|
spacing: 8
|
|
|
|
CText {
|
|
variant: "caption"; text: "ID"
|
|
Layout.preferredWidth: 100
|
|
}
|
|
CText {
|
|
variant: "caption"; text: "Type"
|
|
Layout.preferredWidth: 80
|
|
}
|
|
CText {
|
|
variant: "caption"; text: "Status"
|
|
Layout.preferredWidth: 100
|
|
}
|
|
CText {
|
|
variant: "caption"; text: "Progress"
|
|
Layout.fillWidth: true
|
|
}
|
|
CText {
|
|
variant: "caption"; text: "Created"
|
|
Layout.preferredWidth: 160
|
|
}
|
|
CText {
|
|
variant: "caption"; text: ""
|
|
Layout.preferredWidth: 70
|
|
}
|
|
}
|
|
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
Repeater {
|
|
model: jobs
|
|
|
|
delegate: MediaJobRow {
|
|
Layout.fillWidth: true
|
|
job: modelData
|
|
isLast: index >= jobs.length - 1
|
|
onCancelRequested: {
|
|
jobTable.cancelRequested(
|
|
modelData.id)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|