diff options
author | hjk <hjk121@nokiamail.com> | 2013-09-20 15:12:44 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-09-24 09:57:32 +0200 |
commit | 49d0789e641e118dd412d3094e1f121f6ddfcb86 (patch) | |
tree | 8c19f6d76670e4c097edc44338b2b9813ebb0cb9 /src/plugins/mercurial | |
parent | aa32c2be87f7192e03f06b8b5223100354e269a6 (diff) | |
download | qt-creator-49d0789e641e118dd412d3094e1f121f6ddfcb86.tar.gz |
Cleanup IWizard interface and users
Added 639 lines, removed 1391.
Change-Id: I15ec7dd056d4f7ad79c6dd6a4181007ad14f6a43
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/mercurial')
-rw-r--r-- | src/plugins/mercurial/clonewizard.cpp | 22 | ||||
-rw-r--r-- | src/plugins/mercurial/clonewizard.h | 7 |
2 files changed, 6 insertions, 23 deletions
diff --git a/src/plugins/mercurial/clonewizard.cpp b/src/plugins/mercurial/clonewizard.cpp index 274f0a4af5..9da9266392 100644 --- a/src/plugins/mercurial/clonewizard.cpp +++ b/src/plugins/mercurial/clonewizard.cpp @@ -40,27 +40,13 @@ using namespace Mercurial::Internal; using namespace VcsBase; -CloneWizard::CloneWizard(QObject *parent) - : BaseCheckoutWizard(parent), - m_icon(QIcon(QLatin1String(":/mercurial/images/hg.png"))) +CloneWizard::CloneWizard() { setId(QLatin1String(Constants::VCS_ID_MERCURIAL)); setCustomLabels(tr("Cloning"), tr("Cloning started...")); -} - -QIcon CloneWizard::icon() const -{ - return m_icon; -} - -QString CloneWizard::description() const -{ - return tr("Clones a Mercurial repository and tries to load the contained project."); -} - -QString CloneWizard::displayName() const -{ - return tr("Mercurial Clone"); + setIcon(QIcon(QLatin1String(":/mercurial/images/hg.png"))); + setDescription(tr("Clones a Mercurial repository and tries to load the contained project.")); + setDisplayName(tr("Mercurial Clone")); } QList<QWizardPage *> CloneWizard::createParameterPages(const QString &path) diff --git a/src/plugins/mercurial/clonewizard.h b/src/plugins/mercurial/clonewizard.h index f8d37d37e8..155058c01f 100644 --- a/src/plugins/mercurial/clonewizard.h +++ b/src/plugins/mercurial/clonewizard.h @@ -40,12 +40,9 @@ namespace Internal { class CloneWizard : public VcsBase::BaseCheckoutWizard { Q_OBJECT -public: - CloneWizard(QObject *parent = 0); - QIcon icon() const; - QString description() const; - QString displayName() const; +public: + CloneWizard(); protected: QList<QWizardPage *> createParameterPages(const QString &path); |