Files
metabuilder/qml/MetaBuilder/CTransferCard.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

55 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
CCard {
id: root
required property var transfer
property bool isDark: false
signal approve()
signal deny()
Layout.fillWidth: true
FlexRow {
Layout.fillWidth: true
spacing: 10
CText { variant: "subtitle1"
text: root.transfer.from + " -> " + root.transfer.to }
CStatusBadge { status: "warning"; text: "Pending" }
Item { Layout.fillWidth: true }
CText { variant: "caption"; text: "Expires: " + root.transfer.expiry
color: Theme.textSecondary }
}
CText {
variant: "body2"
text: root.transfer.reason
wrapMode: Text.Wrap
Layout.fillWidth: true
}
FlexRow {
Layout.fillWidth: true
spacing: 8
Item { Layout.fillWidth: true }
CButton {
text: "Approve"
variant: "primary"
size: "sm"
onClicked: root.approve()
}
CButton {
text: "Deny"
variant: "danger"
size: "sm"
onClicked: root.deny()
}
}
}