diff --git a/ui/qml/OutlineView.qml b/ui/qml/OutlineView.qml index f59b789..6062780 100644 --- a/ui/qml/OutlineView.qml +++ b/ui/qml/OutlineView.qml @@ -361,14 +361,24 @@ ListView { font.bold: true } - // Title + // Title. Rendered as StyledText so inline org links in the + // headline are clickable; non-link text keeps the done-aware + // color and strike-through. Label { - text: del.model.title ?? "" + text: outline.renderInline(del.model.title ?? "") color: (del.model.isDone ?? false) ? theme.placeholderTextColor : theme.textColor + linkColor: theme.linkColor font.pointSize: outline.levelFontSize(del.sectionLevel) font.strikeout: del.model.isDone ?? false elide: Text.ElideRight Layout.fillWidth: true + textFormat: Text.StyledText + onLinkActivated: (link) => outline.openLink(link) + + HoverHandler { + enabled: parent.hoveredLink !== "" + cursorShape: Qt.PointingHandCursor + } } // Scheduled timestamp