From e95396306f64b60158e565ae0f6ae5971e80fdd5 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sun, 2 Sep 2012 19:06:04 +0100
Subject: Fixup for previous patch


diff --git a/Swift/QtUI/QtCertificateViewerDialog.cpp b/Swift/QtUI/QtCertificateViewerDialog.cpp
index 2a1e32a..15a52ba 100644
--- a/Swift/QtUI/QtCertificateViewerDialog.cpp
+++ b/Swift/QtUI/QtCertificateViewerDialog.cpp
@@ -15,7 +15,7 @@
 
 namespace Swift {
 
-QtCertificateViewerDialog::QtCertificateViewerDialog(QWidget *parent) : QDialog(parent), ui(new Ui::QtCertificateViewerDialog) {
+QtCertificateViewerDialog::QtCertificateViewerDialog(QWidget* parent) : QDialog(parent), ui(new Ui::QtCertificateViewerDialog) {
 	ui->setupUi(this);
 	connect(ui->certChainTreeWidget, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)));
 
@@ -26,7 +26,7 @@ QtCertificateViewerDialog::~QtCertificateViewerDialog() {
 	delete ui;
 }
 
-void QtCertificateViewerDialog::setCertificateChain(const std::vector<Certificate::ref> &chain) {
+void QtCertificateViewerDialog::setCertificateChain(const std::vector<Certificate::ref>& chain) {
 	// clean widgets
 	ui->certChainTreeWidget->clear();
 
@@ -59,7 +59,7 @@ void QtCertificateViewerDialog::setCertificateChain(const std::vector<Certificat
 	}
 }
 
-void QtCertificateViewerDialog::displayCertificateChainAsSheet(QWidget *parent, const std::vector<Certificate::ref> &chain) {
+void QtCertificateViewerDialog::displayCertificateChainAsSheet(QWidget* parent, const std::vector<Certificate::ref>& chain) {
 	QtCertificateViewerDialog* dialog = new QtCertificateViewerDialog(parent);
 	dialog->setCertificateChain(chain);
 	dialog->show();
@@ -75,10 +75,11 @@ void QtCertificateViewerDialog::currentItemChanged(QTreeWidgetItem* current, QTr
 #define ADD_FIELD( TITLE, VALUE) \
 	ui->certGridLayout->addWidget(new QLabel(TITLE), rowCount, 0, 1, 1, Qt::AlignRight); \
 	valueLabel = new QLabel(VALUE); \
+	valueLabel->setTextFormat(Qt::PlainText); \
 	valueLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); \
 	ui->certGridLayout->addWidget(valueLabel, rowCount++, 1, 1, 1, Qt::AlignLeft);
 
-void QtCertificateViewerDialog::setCertificateDetails(const QSslCertificate &cert) {
+void QtCertificateViewerDialog::setCertificateDetails(const QSslCertificate& cert) {
 	QLayoutItem* item;
 	while ((item = ui->certGridLayout->takeAt(0)) != NULL ) {
 		delete item->widget();
-- 
cgit v0.10.2-6-g49f6