static QString print_info(const QString &title, const QCA::CertificateInfo &info) { QString out; QList<InfoType> list = makeInfoTypeList(); out += title + '\n'; foreach(const InfoType &t, list) out += try_print_info(t.name, info.values(t.type)); return out; }
QString CertificateDisplayDialog::makePropEntry(QCA::CertificateInfoType var, const QString &name, const QCA::CertificateInfo &list) { QString val; QList<QString> values = list.values(var); for (int i = 0; i < values.size(); ++i) val += values.at(i) + "<br>"; if (val.isEmpty()) return QString(); else return QString("<tr><td><nobr><b>") + name + "</b></nobr></td><td>" + val + "</td></tr>"; }