Files
metabuilder/qml/MetaBuilder/CNotificationContent.qml
johndoe6345789 b40f1e0167 refactor(qt6): sub-100 LOC achieved for 24 of 29 views
Views now under 100:
- AdminView (244→92), DropdownConfig (232→97), SuperGodPanel (222→95)
- MediaService (221→82), PageRoutes (178→98), Moderator (167→75)
- Notifications (163→78), GodPanel (161→69), Login (141→70), Comments (138→77)

Components under 100: CWorkflowTestPanel, CDropdownMenu, MediaPluginsTab,
CHeroSection, CLevelCard, LuaCodeEditor, CSmtpServerForm + 4 more

New JS modules: AdminCrud, DropdownCrud, SuperGodCrud, MediaServiceCrud,
PageRoutesDBAL, NotificationsDBAL, CommentsDBAL, LoginDBAL, ModeratorData

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

46 lines
906 B
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
ColumnLayout {
id: root
Layout.fillWidth: true
spacing: 4
property string title: ""
property string message: ""
property string type: ""
property string timestamp: ""
property bool isRead: true
FlexRow {
Layout.fillWidth: true
spacing: 8
CText {
variant: root.isRead ? "body1" : "subtitle1"
text: root.title
font.bold: !root.isRead
}
CBadge { text: root.type }
Item { Layout.fillWidth: true }
CText {
variant: "caption"
text: root.timestamp
opacity: 0.6
}
}
CText {
Layout.fillWidth: true
variant: "body2"
text: root.message
opacity: root.isRead ? 0.6 : 0.85
wrapMode: Text.WordWrap
}
}