diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-05 15:45:18 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-26 11:43:07 +0200 |
commit | 264b833fd6445f60fd18662bb36f54d2f4d713c6 (patch) | |
tree | b97b6d5bd3f51cb610c133a779ccdf6b13e2ee9b /src | |
parent | b4965ba023975e1b2b138c473ee4ff9452f39817 (diff) | |
download | qt-creator-264b833fd6445f60fd18662bb36f54d2f4d713c6.tar.gz |
VcsBase: Rename CheckoutWizardDialog to BaseCheckoutWizard
Change-Id: I4e2729e7e0f0a15d4943099cd7f02824f3dc43d2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/vcsbase/basecheckoutwizardfactory.cpp | 4 | ||||
-rw-r--r-- | src/plugins/vcsbase/checkoutwizarddialog.cpp | 14 | ||||
-rw-r--r-- | src/plugins/vcsbase/checkoutwizarddialog.h | 10 |
3 files changed, 14 insertions, 14 deletions
diff --git a/src/plugins/vcsbase/basecheckoutwizardfactory.cpp b/src/plugins/vcsbase/basecheckoutwizardfactory.cpp index 3f1acb7bc5..94e06644ac 100644 --- a/src/plugins/vcsbase/basecheckoutwizardfactory.cpp +++ b/src/plugins/vcsbase/basecheckoutwizardfactory.cpp @@ -68,7 +68,7 @@ public: BaseCheckoutWizardPrivate() : dialog(0) {} void clear(); - CheckoutWizardDialog *dialog; + BaseCheckoutWizard *dialog; QList<QWizardPage *> parameterPages; QString checkoutPath; QString progressTitle; @@ -106,7 +106,7 @@ void BaseCheckoutWizardFactory::runWizard(const QString &path, QWidget *parent, Q_UNUSED(extraValues); // Create dialog and launch d->parameterPages = createParameterPages(path); - CheckoutWizardDialog dialog(d->parameterPages, parent); + BaseCheckoutWizard dialog(d->parameterPages, parent); if (!d->progressTitle.isEmpty()) dialog.setTitle(d->progressTitle); if (!d->startedStatus.isEmpty()) diff --git a/src/plugins/vcsbase/checkoutwizarddialog.cpp b/src/plugins/vcsbase/checkoutwizarddialog.cpp index bd4b0dd0f8..69d8fdee6e 100644 --- a/src/plugins/vcsbase/checkoutwizarddialog.cpp +++ b/src/plugins/vcsbase/checkoutwizarddialog.cpp @@ -44,7 +44,7 @@ namespace VcsBase { -CheckoutWizardDialog::CheckoutWizardDialog(const QList<QWizardPage *> ¶meterPages, +BaseCheckoutWizard::BaseCheckoutWizard(const QList<QWizardPage *> ¶meterPages, QWidget *parent) : Utils::Wizard(parent), m_progressPage(new Internal::CheckoutProgressWizardPage), @@ -58,37 +58,37 @@ CheckoutWizardDialog::CheckoutWizardDialog(const QList<QWizardPage *> ¶meter connect(m_progressPage, SIGNAL(terminated(bool)), this, SLOT(slotTerminated(bool))); } -void CheckoutWizardDialog::setTitle(const QString &title) +void BaseCheckoutWizard::setTitle(const QString &title) { m_progressPage->setTitle(title); } -void CheckoutWizardDialog::setStartedStatus(const QString &title) +void BaseCheckoutWizard::setStartedStatus(const QString &title) { m_progressPage->setStartedStatus(title); } -void CheckoutWizardDialog::slotPageChanged(int id) +void BaseCheckoutWizard::slotPageChanged(int id) { if (id == m_progressPageId) emit progressPageShown(); } -void CheckoutWizardDialog::slotTerminated(bool success) +void BaseCheckoutWizard::slotTerminated(bool success) { // Allow to correct parameters if (!success) button(QWizard::BackButton)->setEnabled(true); } -void CheckoutWizardDialog::start(Command *command) +void BaseCheckoutWizard::start(Command *command) { // No "back" available while running. button(QWizard::BackButton)->setEnabled(false); m_progressPage->start(command); } -void CheckoutWizardDialog::reject() +void BaseCheckoutWizard::reject() { // First click kills, 2nd closes if (currentId() == m_progressPageId && m_progressPage->isRunning()) diff --git a/src/plugins/vcsbase/checkoutwizarddialog.h b/src/plugins/vcsbase/checkoutwizarddialog.h index d4ffd006f8..06726ae321 100644 --- a/src/plugins/vcsbase/checkoutwizarddialog.h +++ b/src/plugins/vcsbase/checkoutwizarddialog.h @@ -27,8 +27,8 @@ ** ****************************************************************************/ -#ifndef CHECKOUTWIZARDDIALOG_H -#define CHECKOUTWIZARDDIALOG_H +#ifndef BASECHECKOUTWIZARD_H +#define BASECHECKOUTWIZARD_H #include "vcsbase_global.h" @@ -40,12 +40,12 @@ class Command; namespace Internal { class CheckoutProgressWizardPage; } -class VCSBASE_EXPORT CheckoutWizardDialog : public Utils::Wizard +class VCSBASE_EXPORT BaseCheckoutWizard : public Utils::Wizard { Q_OBJECT public: - explicit CheckoutWizardDialog(const QList<QWizardPage *> ¶meterPages, + explicit BaseCheckoutWizard(const QList<QWizardPage *> ¶meterPages, QWidget *parent = 0); void setTitle(const QString &title); @@ -67,4 +67,4 @@ private: } // namespace VcsBase -#endif // CHECKOUTWIZARDDIALOG_H +#endif // BASECHECKOUTWIZARD_H |