Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/ksslinfodialog.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
71 | d->auxPartsEncrypted = true; | 71 | d->auxPartsEncrypted = true; | ||
72 | updateWhichPartsEncrypted(); | 72 | updateWhichPartsEncrypted(); | ||
73 | 73 | | |||
74 | QDialogButtonBox *buttonBox = new QDialogButtonBox(this); | 74 | QDialogButtonBox *buttonBox = new QDialogButtonBox(this); | ||
75 | buttonBox->setStandardButtons(QDialogButtonBox::Close); | 75 | buttonBox->setStandardButtons(QDialogButtonBox::Close); | ||
76 | connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | 76 | connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | ||
77 | connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | 77 | connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | ||
78 | layout->addWidget(buttonBox); | 78 | layout->addWidget(buttonBox); | ||
79 | | ||||
80 | #if 0 | | |||
81 | if (QSslSocket::supportsSsl()) { | | |||
82 | if (d->m_secCon) { | | |||
83 | d->pixmap->setPixmap(BarIcon("security-high")); | | |||
84 | d->info->setText(i18n("Current connection is secured with SSL.")); | | |||
85 | } else { | | |||
86 | d->pixmap->setPixmap(BarIcon("security-low")); | | |||
87 | d->info->setText(i18n("Current connection is not secured with SSL.")); | | |||
88 | } | | |||
89 | } else { | | |||
90 | d->pixmap->setPixmap(BarIcon("security-low")); | | |||
91 | d->info->setText(i18n("SSL support is not available in this build of KDE.")); | | |||
92 | } | | |||
93 | #endif | | |||
94 | } | 79 | } | ||
95 | 80 | | |||
96 | KSslInfoDialog::~KSslInfoDialog() | 81 | KSslInfoDialog::~KSslInfoDialog() | ||
97 | { | 82 | { | ||
98 | delete d; | 83 | delete d; | ||
99 | } | 84 | } | ||
100 | 85 | | |||
101 | void KSslInfoDialog::setMainPartEncrypted(bool mainEncrypted) | 86 | void KSslInfoDialog::setMainPartEncrypted(bool mainEncrypted) | ||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |