Ignore:
Timestamp:
06/26/11 20:49:44 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
d17dd78
Parents:
ed063f1
Message:

Links in events are now clickable (resolves ticket #4).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    red063f1 r3686b97  
    4545    abstract->setText(event.abstract());
    4646    description->setText(event.description());
    47     links->setText(static_cast<QStringList>(event.links().values()).join("\n"));
     47    QStringList linksText = static_cast<QStringList>(event.links().values());
     48    for (QStringList::iterator linkIterator = linksText.begin(); linkIterator != linksText.end(); ++linkIterator)
     49        *linkIterator = QString("<a href=\"%1\">%1</a>").arg(*linkIterator);
     50    links->setText(linksText.join("<br/>"));
    4851
    4952    connect(favouriteButton, SIGNAL(clicked()), SLOT(favouriteClicked()));
Note: See TracChangeset for help on using the changeset viewer.