vbox的更動 62279 路徑 trunk/src/VBox/Frontends
- 時間撮記:
- 2016-7-15 下午02:15:16 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp
r62184 r62279 21 21 22 22 /* Global includes: */ 23 # include <QFontDatabase>24 23 # include <QVBoxLayout> 25 24 # include <QTextBrowser> … … 234 233 /* Configure text-browser: */ 235 234 m_pTextBrowser->setMinimumSize(500, 300); 236 const QFont font = QFontDatabase::systemFont(QFontDatabase::FixedFont);237 m_pTextBrowser->setFont(font);238 235 /* Add text-browser into layout: */ 239 236 pLayout->addWidget(m_pTextBrowser); … … 274 271 275 272 /* Translate text-browser contents: */ 276 QStringList info;277 KCertificateVersion ver = m_certificate.GetVersionNumber();278 info << tr("Issuer: %1").arg(QStringList(m_certificate.GetIssuerName().toList()).join(", "));279 info << tr("Subject: %1").arg(QStringList(m_certificate.GetSubjectName().toList()).join(", "));280 info << tr("Not Valid Before: %1").arg(m_certificate.GetValidityPeriodNotBefore());281 info << tr("Not Valid After: %1").arg(m_certificate.GetValidityPeriodNotAfter());282 info << tr("Serial Number: %1").arg(m_certificate.GetSerialNumber());283 info << tr("Self-Signed: %1").arg(m_certificate.GetSelfSigned() ? tr("True") : tr("False"));284 info << tr("Authority (CA): %1").arg(m_certificate.GetCertificateAuthority() ? tr("True") : tr("False"));285 //info << tr("Trusted: %1").arg(m_certificate.GetTrusted() ? tr("True") : tr("False")); - no, that's why we're here 286 info << tr("Public Algorithm: %1 (%2)").arg(m_certificate.GetPublicKeyAlgorithm()).arg(m_certificate.GetPublicKeyAlgorithmOID());287 info << tr("Signature Algorithm: %1 (%2)").arg(m_certificate.GetSignatureAlgorithmName()).arg(m_certificate.GetSignatureAlgorithmOID());288 info << tr("X.509 Version Number: %1").arg(ver);289 m_pTextBrowser->set PlainText(info.join("\n"));290 } 291 273 const QString strTemplateRow = tr("<tr><td>%1:</td><td>%2</td></tr>", "key: value"); 274 QString strTableContent; 275 strTableContent += strTemplateRow.arg(tr("Issuer"), QStringList(m_certificate.GetIssuerName().toList()).join(", ")); 276 strTableContent += strTemplateRow.arg(tr("Subject"), QStringList(m_certificate.GetSubjectName().toList()).join(", ")); 277 strTableContent += strTemplateRow.arg(tr("Not Valid Before"), m_certificate.GetValidityPeriodNotBefore()); 278 strTableContent += strTemplateRow.arg(tr("Not Valid After"), m_certificate.GetValidityPeriodNotAfter()); 279 strTableContent += strTemplateRow.arg(tr("Serial Number"), m_certificate.GetSerialNumber()); 280 strTableContent += strTemplateRow.arg(tr("Self-Signed"), m_certificate.GetSelfSigned() ? tr("True") : tr("False")); 281 strTableContent += strTemplateRow.arg(tr("Authority (CA)"), m_certificate.GetCertificateAuthority() ? tr("True") : tr("False")); 282 // strTableContent += strTemplateRow.arg(tr("Trusted"), m_certificate.GetTrusted() ? tr("True") : tr("False")); 283 strTableContent += strTemplateRow.arg(tr("Public Algorithm"), tr("%1 (%2)", "value (clarification)").arg(m_certificate.GetPublicKeyAlgorithm()).arg(m_certificate.GetPublicKeyAlgorithmOID())); 284 strTableContent += strTemplateRow.arg(tr("Signature Algorithm"), tr("%1 (%2)", "value (clarification)").arg(m_certificate.GetSignatureAlgorithmName()).arg(m_certificate.GetSignatureAlgorithmOID())); 285 strTableContent += strTemplateRow.arg(tr("X.509 Version Number"), QString::number(m_certificate.GetVersionNumber())); 286 m_pTextBrowser->setText(QString("<table>%1</table>").arg(strTableContent)); 287 } 288
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器