persons->setText(event.persons().join(" and "));
abstract->setText(event.abstract());
description->setText(event.description());
- links->setText(static_cast<QStringList>(event.links().values()).join("\n"));
+ QStringList linksText = static_cast<QStringList>(event.links().values());
+ for (QStringList::iterator linkIterator = linksText.begin(); linkIterator != linksText.end(); ++linkIterator)
+ *linkIterator = QString("<a href=\"%1\">%1</a>").arg(*linkIterator);
+ links->setText(linksText.join("<br/>"));
connect(favouriteButton, SIGNAL(clicked()), SLOT(favouriteClicked()));
connect(alarmButton, SIGNAL(clicked()), SLOT(alarmClicked()));
<rect>
<x>0</x>
<y>0</y>
- <width>463</width>
- <height>270</height>
+ <width>461</width>
+ <height>276</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="text">
<string>LINKS</string>
</property>
+ <property name="textFormat">
+ <enum>Qt::RichText</enum>
+ </property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
+ </property>
</widget>
</item>
</layout>