Commit df01e87b authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Put list of X.509 directory services into a group box

This adds the group box that was removed from
Kleo::DirectoryServicesWidget.

GnuPG-bug-id: 5465
parent 892e607f
...@@ -24,9 +24,11 @@ ...@@ -24,9 +24,11 @@
#include <QLabel> #include <QLabel>
#include <QCheckBox> #include <QCheckBox>
#include <QGroupBox>
#include <QLayout> #include <QLayout>
#include <QLineEdit> #include <QLineEdit>
#include <QTimeEdit> #include <QTimeEdit>
#include <QVBoxLayout>
#include <gpgme++/engineinfo.h> #include <gpgme++/engineinfo.h>
...@@ -162,12 +164,19 @@ DirectoryServicesConfigurationPage::DirectoryServicesConfigurationPage(QWidget * ...@@ -162,12 +164,19 @@ DirectoryServicesConfigurationPage::DirectoryServicesConfigurationPage(QWidget *
// X.509 servers // X.509 servers
++row; ++row;
mWidget = new Kleo::DirectoryServicesWidget(this); {
if (QLayout *l = mWidget->layout()) { auto groupBox = new QGroupBox{i18n("X.509 Directory Services"), this};
l->setContentsMargins(0, 0, 0, 0); auto groupBoxLayout = new QVBoxLayout{groupBox};
mWidget = new Kleo::DirectoryServicesWidget(this);
if (QLayout *l = mWidget->layout()) {
l->setContentsMargins(0, 0, 0, 0);
}
groupBoxLayout->addWidget(mWidget);
glay->addWidget(groupBox, row, 0, 1, 3);
connect(mWidget, SIGNAL(changed()), this, SLOT(changed()));
} }
glay->addWidget(mWidget, row, 0, 1, 3);
connect(mWidget, SIGNAL(changed()), this, SLOT(changed()));
// LDAP timeout // LDAP timeout
++row; ++row;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment