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

Make WizardPage independent of NewCertificateWizard's Private class

GnuPG-bug-id: 5969
parent 732d1cee
......@@ -492,7 +492,6 @@ private:
class NewCertificateWizard::Private
{
friend class ::Kleo::NewCertificateWizard;
friend class ::Kleo::NewCertificateUi::WizardPage;
NewCertificateWizard *const q;
public:
explicit Private(NewCertificateWizard *qq)
......@@ -580,9 +579,9 @@ void NewCertificateWizard::restartAtEnterDetailsPage()
}
}
QDir WizardPage::tmpDir() const
QDir NewCertificateWizard::tmpDir() const
{
return wizard() ? QDir(wizard()->d->tmp.path()) : QDir::home();
return QDir(d->tmp.path());
}
QStringList KeyCreationPage::keyUsages() const
......
......@@ -15,6 +15,8 @@
#include <gpgme++/global.h>
class QDir;
namespace Kleo
{
......@@ -49,6 +51,7 @@ protected:
private:
void resetProtocol();
void restartAtEnterDetailsPage();
QDir tmpDir() const;
private:
class Private;
......
......@@ -51,7 +51,10 @@ protected:
wizard()->restartAtEnterDetailsPage();
}
QDir tmpDir() const;
QDir tmpDir() const
{
return wizard()->tmpDir();
}
protected:
#define FIELD(type, name) type name() const { return field( QStringLiteral(#name) ).value<type>(); }
......
Supports Markdown
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