ProjectWizard: Add button to take you to VCS configuration

This makes setting up VCS more discoverable.
This commit is contained in:
Tobias Hunger
2011-04-15 16:39:22 +02:00
parent fea13a449c
commit 672f44d026
3 changed files with 52 additions and 24 deletions

View File

@@ -33,6 +33,9 @@
#include "projectwizardpage.h"
#include "ui_projectwizardpage.h"
#include <coreplugin/coreimpl.h>
#include <vcsbase/vcsbaseconstants.h>
#include <QtCore/QDir>
#include <QtCore/QTextStream>
@@ -54,6 +57,7 @@ ProjectWizardPage::ProjectWizardPage(QWidget *parent) :
m_ui->setupUi(this);
connect(m_ui->projectComboBox, SIGNAL(currentIndexChanged(int)),
this, SLOT(slotProjectChanged(int)));
connect(m_ui->vcsManageButton, SIGNAL(clicked()), this, SLOT(slotManageVcs()));
setProperty("shortTitle", tr("Summary"));
}
@@ -157,3 +161,10 @@ void ProjectWizardPage::slotProjectChanged(int index)
setProjectToolTip(index >= 0 && index < m_projectToolTips.size() ?
m_projectToolTips.at(index) : QString());
}
void ProjectWizardPage::slotManageVcs()
{
Core::ICore *core = Core::ICore::instance();
core->showOptionsDialog(VCSBase::Constants::VCS_SETTINGS_CATEGORY,
VCSBase::Constants::VCS_COMMON_SETTINGS_ID);
}