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

Modernize code and sort includes

GnuPG-bug-id: 5245
parent ddf99af9
......@@ -11,28 +11,26 @@
#include "commands/certifycertificatecommand.h"
#include "commands/revokecertificationcommand.h"
#include "utils/tags.h"
#include <Libkleo/KeyCache>
#include <Libkleo/UserIDListModel>
#include <KLocalizedString>
#include <KMessageBox>
#include <QHeaderView>
#include <QVBoxLayout>
#include <QMenu>
#include <QTreeView>
#include <QVBoxLayout>
#include <gpgme++/key.h>
#include <gpgme++/keylistresult.h>
#include <QGpgME/Protocol>
#include <QGpgME/KeyListJob>
#include <QGpgME/Protocol>
#include <Libkleo/KeyCache>
#include <Libkleo/UserIDListModel>
#include <gpgme++/key.h>
#include <gpgme++/keylistresult.h>
#include "kleopatra_debug.h"
#include "commands/command.h"
#include "utils/tags.h"
#include <KMessageBox>
#include <KLocalizedString>
#include <QMenu>
using namespace Kleo;
......@@ -49,7 +47,7 @@ private:
public:
Private(WebOfTrustWidget *qq)
: q(qq)
: q{qq}
{
certificationsModel.enableRemarks(Tags::tagsEnabled());
......@@ -222,12 +220,14 @@ public:
};
WebOfTrustWidget::WebOfTrustWidget(QWidget *parent) :
QWidget(parent),
d(new Private(this))
WebOfTrustWidget::WebOfTrustWidget(QWidget *parent)
: QWidget{parent}
, d{std::make_unique<Private>(this)}
{
}
WebOfTrustWidget::~WebOfTrustWidget() = default;
GpgME::Key WebOfTrustWidget::key() const
{
return d->key;
......@@ -247,10 +247,6 @@ void WebOfTrustWidget::setKey(const GpgME::Key &key)
d->startSignatureListing();
}
WebOfTrustWidget::~WebOfTrustWidget()
{
}
void WebOfTrustWidget::signatureListingNextKey(const GpgME::Key &key)
{
GpgME::Key merged = key;
......
......@@ -7,6 +7,8 @@
#include <QWidget>
#include <memory>
namespace GpgME {
class Key;
class KeyListResult;
......@@ -20,7 +22,7 @@ class WebOfTrustWidget : public QWidget
public:
explicit WebOfTrustWidget(QWidget *parent = nullptr);
~WebOfTrustWidget();
~WebOfTrustWidget() override;
void setKey(const GpgME::Key &key);
GpgME::Key key() const;
......@@ -31,7 +33,7 @@ private Q_SLOTS:
private:
class Private;
const QScopedPointer<Private> d;
const std::unique_ptr<Private> d;
};
} // namespace Kleo
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