forked from qt-creator/qt-creator
VcsConfigurationPage: De-noise only change
Change-Id: I0144e9339e7dfd58b1827071e5057941ffdf17f9 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -41,19 +41,21 @@
|
|||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QWizardPage>
|
#include <QWizardPage>
|
||||||
|
|
||||||
|
using namespace Core;
|
||||||
|
|
||||||
namespace VcsBase {
|
namespace VcsBase {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class VcsConfigurationPagePrivate
|
class VcsConfigurationPagePrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const Core::IVersionControl *m_versionControl;
|
const IVersionControl *m_versionControl;
|
||||||
QPushButton *m_configureButton;
|
QPushButton *m_configureButton;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
VcsConfigurationPage::VcsConfigurationPage(const Core::IVersionControl *vc, QWidget *parent) :
|
VcsConfigurationPage::VcsConfigurationPage(const IVersionControl *vc, QWidget *parent) :
|
||||||
QWizardPage(parent),
|
QWizardPage(parent),
|
||||||
d(new Internal::VcsConfigurationPagePrivate)
|
d(new Internal::VcsConfigurationPagePrivate)
|
||||||
{
|
{
|
||||||
@@ -62,7 +64,7 @@ VcsConfigurationPage::VcsConfigurationPage(const Core::IVersionControl *vc, QWid
|
|||||||
setSubTitle(tr("Please configure <b>%1</b> now.").arg(vc->displayName()));
|
setSubTitle(tr("Please configure <b>%1</b> now.").arg(vc->displayName()));
|
||||||
|
|
||||||
d->m_versionControl = vc;
|
d->m_versionControl = vc;
|
||||||
d->m_configureButton = new QPushButton(Core::ICore::msgShowOptionsDialog(), this);
|
d->m_configureButton = new QPushButton(ICore::msgShowOptionsDialog(), this);
|
||||||
|
|
||||||
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
|
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
|
||||||
verticalLayout->addWidget(d->m_configureButton);
|
verticalLayout->addWidget(d->m_configureButton);
|
||||||
@@ -83,9 +85,7 @@ bool VcsConfigurationPage::isComplete() const
|
|||||||
|
|
||||||
void VcsConfigurationPage::openConfiguration()
|
void VcsConfigurationPage::openConfiguration()
|
||||||
{
|
{
|
||||||
Core::ICore::showOptionsDialog(Constants::VCS_SETTINGS_CATEGORY,
|
ICore::showOptionsDialog(Constants::VCS_SETTINGS_CATEGORY, d->m_versionControl->id(), this);
|
||||||
d->m_versionControl->id(),
|
|
||||||
this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace VcsBase
|
} // namespace VcsBase
|
||||||
|
Reference in New Issue
Block a user