Files
metabuilder/frontends/qt6/packages/forum/PackageView.qml
johndoe6345789 8d007afd24 fix(qt6): 26 missing qmldir entries, PackageView bgColor fix, SMTP signal names
- Register all new components in qml/MetaBuilder/qmldir
- Fix backgroundColor → bgColor in 18 PackageView files
- Fix SMTP signal handlers: onHostChanged → onHostEdited (matching actual signals)

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

51 lines
1.4 KiB
QML

import QtQuick
import QtQuick.Layouts
import QmlComponents 1.0
CPaper {
id: packageCard
width: 460
height: 320
property string title: "Community Forum"
property string subtitle: "v1.0.0"
property var dependenciesList: ["profile_page", "guestbook"]
ColumnLayout {
anchors.fill: parent
anchors.margins: 18
spacing: 12
RowLayout {
spacing: 12
CAvatar { initials: title.left(2).toUpper(); bgColor: Theme.primary }
ColumnLayout {
spacing: 4
CText { variant: "h3"; text: title }
CText { variant: "body1"; text: subtitle }
}
Item { Layout.fillWidth: true }
CBadge { text: dependenciesList.length ? "Dependency package" : "Standalone"; accent: dependenciesList.length > 0 }
}
Text {
text: "Threaded discussions with tagging and moderation tools."
font.pixelSize: 14
color: Theme.text
wrapMode: Text.WordWrap
}
RowLayout {
spacing: 8
CChip { text: "Adaptive layout" }
CChip { text: "Realtime telemetry" }
CChip { text: "Community moderation" }
}
RowLayout {
spacing: 8
CButton { text: "Install" }
CButton { text: "Dependency graph"; variant: "ghost" }
}
}
}