Files
metabuilder/qml/MetaBuilder/CSmtpBodyEditor.qml
johndoe6345789 491c4cffed refactor(qt6): push for sub-100 LOC — JS modules, JSON configs, compact formatting
WorkflowEditor (325→80): CWorkflowState.qml + WorkflowConnectionState.js
DashboardView (121→95): DashboardDBAL.js + config/dashboard-config.json
Storybook (114→78): StorybookSidebar + config/storybook-components.json
+ 7 components compacted to under 100 via formatting (no logic changes)
+ Multiple view/component splits across all remaining 100+ LOC files

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

53 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
ColumnLayout {
id: root
property string body: ""
signal bodyChanged(string value)
Layout.fillWidth: true
Layout.fillHeight: true
spacing: 4
FlexRow {
Layout.fillWidth: true
spacing: 8
CText { variant: "caption"; text: "Body Template" }
Item { Layout.fillWidth: true }
CText {
variant: "caption"
text: "Supports {{variable}} placeholders"
}
}
Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumHeight: 180
color: Theme.surface
border.color: Theme.border
border.width: 1
radius: 4
ScrollView {
anchors.fill: parent
anchors.margins: 8
TextArea {
text: root.body
wrapMode: Text.Wrap
color: Theme.text
font.pixelSize: 13
font.family: "monospace"
background: null
onTextChanged: root.bodyChanged(text)
}
}
}
}