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