}
+
// ========================================
// SslCertDisplayDialog
// ========================================
+#ifdef HAVE_SSL
SslCertDisplayDialog::SslCertDisplayDialog(const QString &host, const QSslCertificate &cert, QWidget *parent)
: QDialog(parent)
{
-#ifndef HAVE_SSL
- Q_UNUSED(cert)
-#else
-
setWindowTitle(tr("SSL Certificate used by %1").arg(host));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
+}
#endif
-};
// ========================================
// SslCertDisplayDialog
// ========================================
+#ifdef HAVE_SSL
class QSslCertificate;
class SslCertDisplayDialog : public QDialog {
public:
SslCertDisplayDialog(const QString &host, const QSslCertificate &cert, QWidget *parent = 0);
};
-#endif
+#endif // HAVE_SSL
+
+#endif // CORECONNECTDLG_H