summaryrefslogtreecommitdiffstats
path: root/pica-client/dialogs/forgedcertdialog.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-01 22:16:24 +0400
committerAnton <anton@picapica>2017-12-01 22:16:24 +0400
commit0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch)
treef8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/dialogs/forgedcertdialog.cpp
parentac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff)
downloadpica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.tar.gz
pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.zip
fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper
Diffstat (limited to 'pica-client/dialogs/forgedcertdialog.cpp')
-rw-r--r--pica-client/dialogs/forgedcertdialog.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/pica-client/dialogs/forgedcertdialog.cpp b/pica-client/dialogs/forgedcertdialog.cpp
index ccf144f..54244a2 100644
--- a/pica-client/dialogs/forgedcertdialog.cpp
+++ b/pica-client/dialogs/forgedcertdialog.cpp
@@ -4,50 +4,50 @@
#include <QLabel>
ForgedCertDialog::ForgedCertDialog(QByteArray peer_id, QString received_cert, QString stored_cert, QWidget *parent) :
- QDialog(parent),
- received_cert_(received_cert),
- stored_cert_(stored_cert)
+ QDialog(parent),
+ received_cert_(received_cert),
+ stored_cert_(stored_cert)
{
- QGridLayout *grid = new QGridLayout(this);
+ QGridLayout *grid = new QGridLayout(this);
- QLabel *scary_text = new QLabel(tr(
-"Previously stored and currently present certificates for user %1 do not match.\n\
+ QLabel *scary_text = new QLabel(tr(
+ "Previously stored and currently present certificates for user %1 do not match.\n\
This means that probably someone is trying to eavesdrop your communication\n\
using man-in-the-middle attack or impersonate the user.\n\
Connection aborted.").arg(peer_id.toBase64().constData()));
- btOK = new QPushButton(tr("OK"));
- btShow_stored_cert = new QPushButton(tr("View Stored Certificate..."));
- btShow_received_cert = new QPushButton(tr("View Received Certificate..."));
+ btOK = new QPushButton(tr("OK"));
+ btShow_stored_cert = new QPushButton(tr("View Stored Certificate..."));
+ btShow_received_cert = new QPushButton(tr("View Received Certificate..."));
- grid->addWidget(scary_text, 0,0, 1, 3, Qt::AlignCenter);
- grid->addWidget(btShow_stored_cert, 1, 0, Qt::AlignCenter);
- grid->addWidget(btShow_received_cert, 1, 2, Qt::AlignCenter);
- grid->addWidget(btOK, 2, 1, Qt::AlignCenter);
+ grid->addWidget(scary_text, 0, 0, 1, 3, Qt::AlignCenter);
+ grid->addWidget(btShow_stored_cert, 1, 0, Qt::AlignCenter);
+ grid->addWidget(btShow_received_cert, 1, 2, Qt::AlignCenter);
+ grid->addWidget(btOK, 2, 1, Qt::AlignCenter);
- setLayout(grid);
+ setLayout(grid);
- connect(btOK, SIGNAL(clicked()), this, SLOT(OK()));
- connect(btShow_stored_cert, SIGNAL(clicked()), this, SLOT(StoredCert()));
- connect(btShow_received_cert, SIGNAL(clicked()), this, SLOT(ReceivedCert()));
+ connect(btOK, SIGNAL(clicked()), this, SLOT(OK()));
+ connect(btShow_stored_cert, SIGNAL(clicked()), this, SLOT(StoredCert()));
+ connect(btShow_received_cert, SIGNAL(clicked()), this, SLOT(ReceivedCert()));
}
void ForgedCertDialog::OK()
{
- done(0);
+ done(0);
}
void ForgedCertDialog::ReceivedCert()
{
- ViewCertDialog vcd;
- vcd.SetCert(received_cert_);
- vcd.exec();
+ ViewCertDialog vcd;
+ vcd.SetCert(received_cert_);
+ vcd.exec();
}
void ForgedCertDialog::StoredCert()
{
- ViewCertDialog vcd;
- vcd.SetCert(stored_cert_);
- vcd.exec();
+ ViewCertDialog vcd;
+ vcd.SetCert(stored_cert_);
+ vcd.exec();
}