mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
- Delete QmlComponents symlink (Windows incompatible, bad practice) - main.cpp: add qml/ and project root as import paths directly - No more symlink dependency — works cross-platform - Clean up stale duplicate files from background agents - Update generate_cmake.py and CMakeLists.txt for new paths Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
58 lines
1.3 KiB
QML
58 lines
1.3 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
CCard {
|
|
id: root
|
|
Layout.fillWidth: true
|
|
Layout.preferredWidth: 1
|
|
Layout.alignment: Qt.AlignTop
|
|
|
|
property string fromName: ""
|
|
property string fromEmail: ""
|
|
|
|
signal fromNameEdited(string value)
|
|
signal fromEmailEdited(string value)
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 16
|
|
spacing: 12
|
|
|
|
CText { variant: "h4"; text: "Sender" }
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
CTextField {
|
|
Layout.fillWidth: true
|
|
label: "From Name"
|
|
placeholderText: "MetaBuilder"
|
|
text: root.fromName
|
|
onTextChanged: root.fromNameEdited(text)
|
|
}
|
|
|
|
CTextField {
|
|
Layout.fillWidth: true
|
|
label: "From Email"
|
|
placeholderText: "noreply@example.com"
|
|
text: root.fromEmail
|
|
onTextChanged: root.fromEmailEdited(text)
|
|
}
|
|
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
CText { variant: "caption"; text: "Preview" }
|
|
|
|
CPaper {
|
|
Layout.fillWidth: true
|
|
|
|
CText {
|
|
anchors.fill: parent
|
|
anchors.margins: 12
|
|
variant: "body2"
|
|
text: root.fromName + " <" + root.fromEmail + ">"
|
|
}
|
|
}
|
|
}
|
|
}
|