forked from qt-creator/qt-creator
Use Core::Id in ICore::showOptionsDialog
Change-Id: I3865fde2347d687a7dee76dd5ca62db69cc4dd04 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -47,15 +47,10 @@ GerritOptionsPage::GerritOptionsPage(const QSharedPointer<GerritParameters> &p,
|
||||
: VcsBase::VcsBaseOptionsPage(parent)
|
||||
, m_parameters(p)
|
||||
{
|
||||
setId(optionsId());
|
||||
setId(QLatin1String("Gerrit"));
|
||||
setDisplayName(tr("Gerrit"));
|
||||
}
|
||||
|
||||
QString GerritOptionsPage::optionsId()
|
||||
{
|
||||
return QLatin1String("Gerrit");
|
||||
}
|
||||
|
||||
QWidget *GerritOptionsPage::createPage(QWidget *parent)
|
||||
{
|
||||
GerritOptionsWidget *gow = new GerritOptionsWidget(parent);
|
||||
|
||||
@@ -75,8 +75,6 @@ public:
|
||||
GerritOptionsPage(const QSharedPointer<GerritParameters> &p,
|
||||
QObject *parent = 0);
|
||||
|
||||
static QString optionsId();
|
||||
|
||||
QWidget *createPage(QWidget *parent);
|
||||
void apply();
|
||||
void finish() { }
|
||||
|
||||
@@ -360,8 +360,8 @@ void GerritPlugin::openView()
|
||||
{
|
||||
if (m_dialog.isNull()) {
|
||||
while (!m_parameters->isValid()) {
|
||||
const QString group = QLatin1String(VcsBase::Constants::VCS_SETTINGS_CATEGORY);
|
||||
if (!Core::ICore::instance()->showOptionsDialog(group, GerritOptionsPage::optionsId()))
|
||||
const Core::Id group = VcsBase::Constants::VCS_SETTINGS_CATEGORY;
|
||||
if (!Core::ICore::instance()->showOptionsDialog(group, Core::Id("Gerrit")))
|
||||
return;
|
||||
}
|
||||
GerritDialog *gd = new GerritDialog(m_parameters, Core::ICore::mainWindow());
|
||||
|
||||
Reference in New Issue
Block a user