fix: update or delete news on newsModel update (#2007)

* fix: update or delete news on newsModel update

* update: changed check for news editing

* update: changed news edit updating

* update: changed news model updating method

* chore: add rich text support for news page

---------

Co-authored-by: vkamn <vk@amnezia.org>
This commit is contained in:
MrMirDan
2025-12-01 14:23:14 +02:00
committed by GitHub
parent 105c42db1c
commit c81ae2b060
2 changed files with 24 additions and 18 deletions
@@ -63,6 +63,18 @@ PageType {
Layout.leftMargin: 16
Layout.rightMargin: 16
text: newsItem.content
textFormat: Text.RichText
onLinkActivated: function(link) {
Qt.openUrlExternally(link)
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
}
}