forked from qt-creator/qt-creator
Vcs: Dissolve VcsBaseOptionsPage intermediate hierarchy level
It's effectively setting only three properties nowadays, not enough to justify a case of reuse-by-inheritance anymore. Change-Id: Ia0aedbd0dc460a70bed580a3402cf928c7221a77 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -103,12 +103,16 @@ void CommonSettingsWidget::updatePath()
|
||||
|
||||
// --------------- VcsBaseSettingsPage
|
||||
CommonOptionsPage::CommonOptionsPage(QObject *parent) :
|
||||
VcsBaseOptionsPage(parent)
|
||||
Core::IOptionsPage(parent)
|
||||
{
|
||||
m_settings.fromSettings(Core::ICore::settings());
|
||||
|
||||
setId(Constants::VCS_COMMON_SETTINGS_ID);
|
||||
setDisplayName(QCoreApplication::translate("VcsBase", Constants::VCS_COMMON_SETTINGS_NAME));
|
||||
setCategory(Constants::VCS_SETTINGS_CATEGORY);
|
||||
// The following act as blueprint for other pages in the same category:
|
||||
setDisplayCategory(QCoreApplication::translate("VcsBase", "Version Control"));
|
||||
setCategoryIconPath(":/vcsbase/images/settingscategory_vcs.png");
|
||||
}
|
||||
|
||||
QWidget *CommonOptionsPage::widget()
|
||||
|
||||
Reference in New Issue
Block a user