Commit 043c193e authored by Tobias Hunger's avatar Tobias Hunger

VcsBase: Rename BaseCheckoutWizardPrivate to BaseCheckoutWizardFactoryPrivate

Rename a member while at it anyway.

Change-Id: Ic161acd7bb358cfeb29b2a050059cff5d7ca5cdd
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 8140341f
......@@ -62,30 +62,30 @@
namespace VcsBase {
namespace Internal {
class BaseCheckoutWizardPrivate
class BaseCheckoutWizardFactoryPrivate
{
public:
BaseCheckoutWizardPrivate() : dialog(0) {}
BaseCheckoutWizardFactoryPrivate() : wizard(0) {}
void clear();
BaseCheckoutWizard *dialog;
BaseCheckoutWizard *wizard;
QList<QWizardPage *> parameterPages;
QString checkoutPath;
QString progressTitle;
QString startedStatus;
};
void BaseCheckoutWizardPrivate::clear()
void BaseCheckoutWizardFactoryPrivate::clear()
{
parameterPages.clear();
dialog = 0;
wizard = 0;
checkoutPath.clear();
}
} // namespace Internal
BaseCheckoutWizardFactory::BaseCheckoutWizardFactory() :
d(new Internal::BaseCheckoutWizardPrivate)
d(new Internal::BaseCheckoutWizardFactoryPrivate)
{
setWizardKind(IWizardFactory::ProjectWizard);
setCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY));
......@@ -112,7 +112,7 @@ void BaseCheckoutWizardFactory::runWizard(const QString &path, QWidget *parent,
wizard.setTitle(d->progressTitle);
if (!d->startedStatus.isEmpty())
wizard.setStartedStatus(d->startedStatus);
d->dialog = &wizard;
d->wizard = &wizard;
connect(&wizard, SIGNAL(progressPageShown()), this, SLOT(slotProgressPageShown()));
wizard.setWindowTitle(displayName());
if (wizard.exec() != QDialog::Accepted)
......@@ -188,7 +188,7 @@ void BaseCheckoutWizardFactory::setCustomLabels(const QString &progressTitle, co
void BaseCheckoutWizardFactory::slotProgressPageShown()
{
Command *command = createCommand(d->parameterPages, &(d->checkoutPath));
d->dialog->start(command);
d->wizard->start(command);
}
} // namespace VcsBase
......@@ -41,7 +41,7 @@ class QWizardPage;
QT_END_NAMESPACE
namespace VcsBase {
namespace Internal { class BaseCheckoutWizardPrivate; }
namespace Internal { class BaseCheckoutWizardFactoryPrivate; }
class Command;
......@@ -67,7 +67,7 @@ private slots:
void slotProgressPageShown();
private:
Internal::BaseCheckoutWizardPrivate *const d;
Internal::BaseCheckoutWizardFactoryPrivate *const d;
};
} // namespace VcsBase
......
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