- sound_name->setText(item->text());
- sound_name->setUrl(m_currentInfo.infoUrl);
- sound_author->setText(m_currentInfo.author);
- sound_author->setUrl(m_currentInfo.authorUrl);
- if (!m_currentInfo.description.isEmpty()) info_browser->setHtml("<em>" + m_currentInfo.description + "</em>");
+ QString title = "<h3>" + m_currentInfo.itemName;
+ if (!m_currentInfo.infoUrl.isEmpty())
+ title += QString(" (<a href=\"%1\">%2</a>)").arg(m_currentInfo.infoUrl).arg(i18nc("the url link pointing to a web page", "link"));
+ title.append("</h3>");
+
+ if (!m_currentInfo.authorUrl.isEmpty()) {
+ title += QString("<a href=\"%1\">").arg(m_currentInfo.authorUrl);
+ if (!m_currentInfo.author.isEmpty())
+ title.append(m_currentInfo.author);
+ else title.append(i18n("Author"));
+ title.append("</a><br />");
+ }
+ else if (!m_currentInfo.author.isEmpty())
+ title.append(m_currentInfo.author + "<br />");
+ else
+ title.append("<br />");
+
+ slotSetTitle(title);
+ if (!m_currentInfo.description.isEmpty()) slotSetDescription(m_currentInfo.description);