diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-09-02 18:06:04 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-09-02 18:06:04 (GMT) |
commit | e95396306f64b60158e565ae0f6ae5971e80fdd5 (patch) | |
tree | 35384ac86e2321511ab4ab4030c47eb786d3db6c /Swift/QtUI | |
parent | 10e368538ec36b6a5f0c115196fb1177d547a64a (diff) | |
download | swift-contrib-e95396306f64b60158e565ae0f6ae5971e80fdd5.zip swift-contrib-e95396306f64b60158e565ae0f6ae5971e80fdd5.tar.bz2 |
Fixup for previous patch
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtCertificateViewerDialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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(); |