Commit faa01e04 authored by Tomas Mecir's avatar Tomas Mecir

fix clickable links

parent d48436bb
......@@ -1314,7 +1314,8 @@ QString chunkLink::toHTML (QString &)
void chunkLink::insertToDocument (QTextCursor &cursor, QTextCharFormat &format) {
QTextCharFormat linkformat = format;
linkformat.setAnchor (true);
linkformat.setAnchorHref (_target);
QString href = QString(_iscommand ? "command" : "link") + " " + (_toprompt ? "prompt" : "send") + " " + _target;
linkformat.setAnchorHref (href);
if (linkformat.foreground().color() == _chunk->startAttr().fg)
linkformat.setForeground (linkColor);
cursor.insertText (_text, linkformat);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment