+ const QString itemLabel = item.label;
+ QString itemValue = item.value;
+ if (item.value.startsWith("<a href=")) {
+ // use the text color for the value-links, to create a visual difference
+ // to the semantically different links like "Change..."
+ const QColor linkColor = q->palette().text().color();
+ QString decoration;
+ if (m_readOnly) {
+ decoration = QString::fromLatin1("text-decoration:none;");
+ }
+ const QString styleText = QString::fromLatin1("style=\"color:%1;%2\" ")
+ .arg(linkColor.name())
+ .arg(decoration);
+ itemValue.insert(3 /* after "<a "*/, styleText);
+ }