diff --git a/ui/NewsDelegate.qml b/ui/NewsDelegate.qml new file mode 100644 index 0000000..86d4232 --- /dev/null +++ b/ui/NewsDelegate.qml @@ -0,0 +1,21 @@ +import QtQuick +import QtQuick.Controls + +Text { + height: 25 + width: newsList.width + id: titleText + textFormat: Text.RichText + text: " " + title + "" + wrapMode: Text.WordWrap + font.pixelSize: 12 + font.bold: true + onLinkActivated: openLink => Qt.openUrlExternally(link) + MouseArea { + id: mouseArea + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.NoButton + } +}