summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-19 14:42:43 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-21 09:26:06 +0100
commita3984dd7517535b131c656fabcb03676a2f53946 (patch)
tree17a855c43b9ee098a5cbb780e2f1453652d6c84f /src/plugins/vcsbase/vcsplugin.cpp
parent6b10466b103755e5826ade1588c69b9cb47dfeee (diff)
downloadqt-creator-a3984dd7517535b131c656fabcb03676a2f53946.tar.gz
Vcs: Make VcsConfiguration page available to JSON wizards
Change-Id: I444d1d95b87fe5c1ede04e1ae9bbe4e1e2d89bd3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsplugin.cpp')
-rw-r--r--src/plugins/vcsbase/vcsplugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsplugin.cpp b/src/plugins/vcsbase/vcsplugin.cpp
index 13f226d43a..1432f77b9c 100644
--- a/src/plugins/vcsbase/vcsplugin.cpp
+++ b/src/plugins/vcsbase/vcsplugin.cpp
@@ -36,11 +36,13 @@
#include "nicknamedialog.h"
#include "vcsoutputwindow.h"
#include "corelistener.h"
+#include "wizard/vcsconfigurationpage.h"
#include <coreplugin/iversioncontrol.h>
#include <coreplugin/mimedatabase.h>
#include <coreplugin/vcsmanager.h>
+#include <projectexplorer/jsonwizard/jsonwizardfactory.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projecttree.h>
@@ -89,6 +91,8 @@ bool VcsPlugin::initialize(const QStringList &arguments, QString *errorMessage)
this, SLOT(slotSettingsChanged()));
slotSettingsChanged();
+ JsonWizardFactory::registerPageFactory(new Internal::VcsConfigurationPageFactory);
+
Utils::MacroExpander *expander = Utils::globalMacroExpander();
expander->registerVariable(Constants::VAR_VCS_NAME,
tr("Name of the version control system in use by the current project."),