Files
metabuilder/qml/MetaBuilder/CSmtpSenderForm.qml
johndoe6345789 99bfd75732 fix(qt6): remove QmlComponents symlink, use direct import paths in main.cpp
- 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>
2026-03-19 10:30:43 +00:00

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 + ">"
}
}
}
}