notifications: fix card never rendering (delegate modelData + column width)
a13d083ff21a004336d6811160e895587f6bd143
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 6eacd8adce73
Two bugs left the rebuilt popup cards blank:
1. The inner Repeater used `delegate: NotificationCard { ... }` with the
card's `required property var modelData` uninitialized. Qt6 does not
inject an array model's modelData into a required property on an
external-component delegate root, so "Cannot create delegate /
Required property modelData was not initialized" aborted all child
instantiation (only the root Rectangle painted). Wrap the card in a
plain Item that takes the injection and passes it down explicitly.
2. The card's content Column sized off `parent.width` where the parent is
a Row (content-derived width) -> binding loop collapsing it to 0. Size
off the card's own externally-set width instead.
Verified via screenshot: bold summary, wrapped body, critical red accent
bar, app name, action button, and time all render.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>