diff options
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorersettingspage.cpp')
-rw-r--r-- | src/plugins/projectexplorer/projectexplorersettingspage.cpp | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.cpp b/src/plugins/projectexplorer/projectexplorersettingspage.cpp index 48489c428b..50491deaab 100644 --- a/src/plugins/projectexplorer/projectexplorersettingspage.cpp +++ b/src/plugins/projectexplorer/projectexplorersettingspage.cpp @@ -153,32 +153,16 @@ QString ProjectExplorerSettingsWidget::searchKeywords() const // ------------------ ProjectExplorerSettingsPage ProjectExplorerSettingsPage::ProjectExplorerSettingsPage() { + setId(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_ID)); + setDisplayName(tr("General")); + setCategory(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY)); + setDisplayCategory(QCoreApplication::translate("ProjectExplorer", + Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY)); + setCategoryIcon(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON)); } -QString ProjectExplorerSettingsPage::id() const +ProjectExplorerSettingsPage::~ProjectExplorerSettingsPage() { - return QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_ID); -} - -QString ProjectExplorerSettingsPage::displayName() const -{ - return tr("General"); -} - -QString ProjectExplorerSettingsPage::category() const -{ - return QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY); -} - -QString ProjectExplorerSettingsPage::displayCategory() const -{ - return QCoreApplication::translate("ProjectExplorer", - Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY); -} - -QIcon ProjectExplorerSettingsPage::categoryIcon() const -{ - return QIcon(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON)); } QWidget *ProjectExplorerSettingsPage::createPage(QWidget *parent) |