diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-03-26 17:34:10 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-03-26 17:47:31 +0100 |
commit | 2d21060bc97cf7a20dde46e20c3b4a2c6cd50f64 (patch) | |
tree | dc61448e1666c524f38cc3f2eb5b457b54e0444f /src/plugins/projectexplorer | |
parent | d6b67fb290a0b3debdf7d027f8755e502e9bdfc9 (diff) |
Added icons to options dialog categories
Some categories do not have icons yet, unfortunately.
Diffstat (limited to 'src/plugins/projectexplorer')
3 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/projectexplorerconstants.h b/src/plugins/projectexplorer/projectexplorerconstants.h index 1dd417d714..fa57502a13 100644 --- a/src/plugins/projectexplorer/projectexplorerconstants.h +++ b/src/plugins/projectexplorer/projectexplorerconstants.h @@ -187,6 +187,7 @@ const char * const RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource"; // settings page const char * const PROJECTEXPLORER_SETTINGS_CATEGORY = "K.ProjectExplorer"; +const char * const PROJECTEXPLORER_SETTINGS_CATEGORY_ICON = ":/core/images/category_project.png"; const char * const PROJECTEXPLORER_SETTINGS_ID = "ProjectExplorer.ProjectExplorer"; // task categories diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.cpp b/src/plugins/projectexplorer/projectexplorersettingspage.cpp index d7fc674585..32000e8064 100644 --- a/src/plugins/projectexplorer/projectexplorersettingspage.cpp +++ b/src/plugins/projectexplorer/projectexplorersettingspage.cpp @@ -137,6 +137,11 @@ QString ProjectExplorerSettingsPage::displayCategory() const return tr("Projects"); } +QIcon ProjectExplorerSettingsPage::categoryIcon() const +{ + return QIcon(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON); +} + QWidget *ProjectExplorerSettingsPage::createPage(QWidget *parent) { m_widget = new ProjectExplorerSettingsWidget(parent); @@ -169,6 +174,6 @@ bool ProjectExplorerSettingsPage::matches(const QString &s) const return m_searchKeywords.contains(s, Qt::CaseInsensitive); } -} -} +} // namespace Internal +} // namespace ProjectExplorer diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.h b/src/plugins/projectexplorer/projectexplorersettingspage.h index 417873c459..7026a8f8ce 100644 --- a/src/plugins/projectexplorer/projectexplorersettingspage.h +++ b/src/plugins/projectexplorer/projectexplorersettingspage.h @@ -75,6 +75,7 @@ public: virtual QString displayName() const; virtual QString category() const; virtual QString displayCategory() const; + virtual QIcon categoryIcon() const; virtual QWidget *createPage(QWidget *parent); virtual void apply(); |