Core: Introduce a IOptionsPage::setCategoryIconPath

Less noise on the user side.

Change-Id: I34dea09e8a3c8639f5a7db89b22f8b825b946395
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-01-10 09:33:24 +01:00
parent 3d7a3b4749
commit d43b793dd8
30 changed files with 37 additions and 57 deletions

View File

@@ -147,8 +147,7 @@ TestSettingsPage::TestSettingsPage(const QSharedPointer<TestSettings> &settings)
setDisplayName(tr("General")); setDisplayName(tr("General"));
setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY); setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("AutoTest", Constants::AUTOTEST_SETTINGS_TR)); setDisplayCategory(QCoreApplication::translate("AutoTest", Constants::AUTOTEST_SETTINGS_TR));
setCategoryIcon(Utils::Icon({{":/autotest/images/settingscategory_autotest.png", setCategoryIconPath(":/autotest/images/settingscategory_autotest.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *TestSettingsPage::widget() QWidget *TestSettingsPage::widget()

View File

@@ -73,9 +73,8 @@ GeneralOptionsPage::GeneralOptionsPage(const QStringList &toolIds, QObject *pare
setDisplayName(tr("General")); setDisplayName(tr("General"));
setCategory(Constants::OPTION_CATEGORY); setCategory(Constants::OPTION_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Beautifier", "Beautifier")); setDisplayCategory(QCoreApplication::translate("Beautifier", "Beautifier"));
setCategoryIcon(Utils::Icon({{":/beautifier/images/settingscategory_beautifier.png",
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
setWidgetCreator([toolIds] { return new GeneralOptionsPageWidget(toolIds); }); setWidgetCreator([toolIds] { return new GeneralOptionsPageWidget(toolIds); });
setCategoryIconPath(":/beautifier/images/settingscategory_beautifier.png");
} }
} // namespace Internal } // namespace Internal

View File

@@ -85,7 +85,7 @@ public:
"Clang Tools")); "Clang Tools"));
setCategory("T.Analyzer"); setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
setCategoryIcon(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
setWidgetCreator([] { return new SettingsWidget; }); setWidgetCreator([] { return new SettingsWidget; });
} }
}; };

View File

@@ -37,6 +37,8 @@
#include <QLabel> #include <QLabel>
#include <QPushButton> #include <QPushButton>
using namespace Utils;
/*! /*!
\class Core::IOptionsPage \class Core::IOptionsPage
\mainclass \mainclass
@@ -144,6 +146,11 @@ void Core::IOptionsPage::finish()
} }
} }
void Core::IOptionsPage::setCategoryIconPath(const QString &categoryIconPath)
{
m_categoryIcon = Icon({{categoryIconPath, Theme::PanelTextColorDark}}, Icon::Tint);
}
/*! /*!
\fn void IOptionsPage::setId(Id id) \fn void IOptionsPage::setId(Id id)

View File

@@ -75,6 +75,7 @@ protected:
void setCategory(Id category) { m_category = category; } void setCategory(Id category) { m_category = category; }
void setDisplayCategory(const QString &displayCategory) { m_displayCategory = displayCategory; } void setDisplayCategory(const QString &displayCategory) { m_displayCategory = displayCategory; }
void setCategoryIcon(const Utils::Icon &categoryIcon) { m_categoryIcon = categoryIcon; } void setCategoryIcon(const Utils::Icon &categoryIcon) { m_categoryIcon = categoryIcon; }
void setCategoryIconPath(const QString &categoryIconPath);
Id m_id; Id m_id;
Id m_category; Id m_category;

View File

@@ -58,8 +58,8 @@ GeneralSettings::GeneralSettings()
setDisplayName(tr("Interface")); setDisplayName(tr("Interface"));
setCategory(Constants::SETTINGS_CATEGORY_CORE); setCategory(Constants::SETTINGS_CATEGORY_CORE);
setDisplayCategory(QCoreApplication::translate("Core", "Environment")); setDisplayCategory(QCoreApplication::translate("Core", "Environment"));
setCategoryIcon(Utils::Icon({{":/core/images/settingscategory_core.png", setCategoryIconPath(":/core/images/settingscategory_core.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
m_defaultShowShortcutsInContextMenu = QGuiApplication::styleHints() m_defaultShowShortcutsInContextMenu = QGuiApplication::styleHints()
->showShortcutsInContextMenus(); ->showShortcutsInContextMenus();
} }

View File

@@ -69,8 +69,7 @@ SettingsPage::SettingsPage(const QSharedPointer<Settings> &settings, QObject *pa
setDisplayName(tr("General")); setDisplayName(tr("General"));
setCategory(Constants::CPASTER_SETTINGS_CATEGORY); setCategory(Constants::CPASTER_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("CodePaster", "Code Pasting")); setDisplayCategory(QCoreApplication::translate("CodePaster", "Code Pasting"));
setCategoryIcon(Utils::Icon({{":/cpaster/images/settingscategory_cpaster.png", setCategoryIconPath(":/cpaster/images/settingscategory_cpaster.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
SettingsPage::~SettingsPage() = default; SettingsPage::~SettingsPage() = default;

View File

@@ -146,7 +146,7 @@ CppcheckOptionsPage::CppcheckOptionsPage(CppcheckTool &tool, CppcheckTrigger &tr
setDisplayName(tr("Cppcheck")); setDisplayName(tr("Cppcheck"));
setCategory("T.Analyzer"); setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
setCategoryIcon(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
CppcheckOptions options; CppcheckOptions options;
if (Utils::HostOsInfo::isAnyUnixHost()) { if (Utils::HostOsInfo::isAnyUnixHost()) {

View File

@@ -166,9 +166,7 @@ CppCodeModelSettingsPage::CppCodeModelSettingsPage(QSharedPointer<CppCodeModelSe
setDisplayName(QCoreApplication::translate("CppTools",Constants::CPP_CODE_MODEL_SETTINGS_NAME)); setDisplayName(QCoreApplication::translate("CppTools",Constants::CPP_CODE_MODEL_SETTINGS_NAME));
setCategory(Constants::CPP_SETTINGS_CATEGORY); setCategory(Constants::CPP_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("CppTools", "C++")); setDisplayCategory(QCoreApplication::translate("CppTools", "C++"));
setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_cpp.png", setCategoryIconPath(":/projectexplorer/images/settingscategory_cpp.png");
Utils::Theme::PanelTextColorDark}},
Utils::Icon::Tint));
} }
QWidget *CppCodeModelSettingsPage::widget() QWidget *CppCodeModelSettingsPage::widget()

View File

@@ -25,13 +25,10 @@
#pragma once #pragma once
#include <utils/icon.h>
namespace Analyzer { namespace Analyzer {
namespace Icons { namespace Icons {
const Utils::Icon SETTINGSCATEGORY_ANALYZER({ const char SETTINGSCATEGORY_ANALYZER[] = ":/images/settingscategory_analyzer.png";
{":/images/settingscategory_analyzer.png", Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint);
} // namespace Icons } // namespace Icons
} // namespace Analyzer } // namespace Analyzer

View File

@@ -249,8 +249,7 @@ CommonOptionsPage::CommonOptionsPage()
setDisplayName(QCoreApplication::translate("Debugger", "General")); setDisplayName(QCoreApplication::translate("Debugger", "General"));
setCategory(DEBUGGER_SETTINGS_CATEGORY); setCategory(DEBUGGER_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Debugger", "Debugger")); setDisplayCategory(QCoreApplication::translate("Debugger", "Debugger"));
setCategoryIcon(Icon({{":/debugger/images/settingscategory_debugger.png", setCategoryIconPath(":/debugger/images/settingscategory_debugger.png");
Theme::PanelTextColorDark}}, Icon::Tint));
setWidgetCreator([] { return new CommonOptionsPageWidget; }); setWidgetCreator([] { return new CommonOptionsPageWidget; });
} }

View File

@@ -366,8 +366,7 @@ public:
setDisplayName(Tr::tr("General")); setDisplayName(Tr::tr("General"));
setCategory(SETTINGS_CATEGORY); setCategory(SETTINGS_CATEGORY);
setDisplayCategory(Tr::tr("FakeVim")); setDisplayCategory(Tr::tr("FakeVim"));
setCategoryIcon(Utils::Icon({{":/fakevim/images/settingscategory_fakevim.png", setCategoryIconPath(":/fakevim/images/settingscategory_fakevim.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *widget() override; QWidget *widget() override;

View File

@@ -57,8 +57,7 @@ GeneralSettingsPage::GeneralSettingsPage()
setDisplayName(tr("General")); setDisplayName(tr("General"));
setCategory(Help::Constants::HELP_CATEGORY); setCategory(Help::Constants::HELP_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Help", "Help")); setDisplayCategory(QCoreApplication::translate("Help", "Help"));
setCategoryIcon(Utils::Icon({{":/help/images/settingscategory_help.png", setCategoryIconPath(":/help/images/settingscategory_help.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *GeneralSettingsPage::widget() QWidget *GeneralSettingsPage::widget()

View File

@@ -254,8 +254,7 @@ LanguageClientSettingsPage::LanguageClientSettingsPage()
setCategory(Constants::LANGUAGECLIENT_SETTINGS_CATEGORY); setCategory(Constants::LANGUAGECLIENT_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("LanguageClient", setDisplayCategory(QCoreApplication::translate("LanguageClient",
Constants::LANGUAGECLIENT_SETTINGS_TR)); Constants::LANGUAGECLIENT_SETTINGS_TR));
setCategoryIcon(Utils::Icon({{":/languageclient/images/settingscategory_languageclient.png", setCategoryIconPath(":/languageclient/images/settingscategory_languageclient.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
LanguageClientSettingsPage::~LanguageClientSettingsPage() LanguageClientSettingsPage::~LanguageClientSettingsPage()

View File

@@ -50,8 +50,7 @@ NimCodeStyleSettingsPage::NimCodeStyleSettingsPage()
setDisplayName(tr(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_DISPLAY)); setDisplayName(tr(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_DISPLAY));
setCategory(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_CATEGORY); setCategory(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_CATEGORY);
setDisplayCategory(tr("Nim")); setDisplayCategory(tr("Nim"));
setCategoryIcon(Utils::Icon({{":/nim/images/settingscategory_nim.png", setCategoryIconPath(":/nim/images/settingscategory_nim.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
NimCodeStyleSettingsPage::~NimCodeStyleSettingsPage() NimCodeStyleSettingsPage::~NimCodeStyleSettingsPage()

View File

@@ -62,9 +62,7 @@ NimToolsSettingsPage::NimToolsSettingsPage(NimSettings *settings)
setDisplayName(tr(Nim::Constants::C_NIMTOOLSSETTINGSPAGE_DISPLAY)); setDisplayName(tr(Nim::Constants::C_NIMTOOLSSETTINGSPAGE_DISPLAY));
setCategory(Nim::Constants::C_NIMTOOLSSETTINGSPAGE_CATEGORY); setCategory(Nim::Constants::C_NIMTOOLSSETTINGSPAGE_CATEGORY);
setDisplayCategory(tr("Nim")); setDisplayCategory(tr("Nim"));
setCategoryIcon(Utils::Icon({{":/nim/images/settingscategory_nim.png", setCategoryIconPath(":/nim/images/settingscategory_nim.png");
Utils::Theme::PanelTextColorDark
}}, Utils::Icon::Tint));
} }
NimToolsSettingsPage::~NimToolsSettingsPage() = default; NimToolsSettingsPage::~NimToolsSettingsPage() = default;

View File

@@ -39,7 +39,7 @@ PerfOptionsPage::PerfOptionsPage()
setDisplayName(QCoreApplication::translate("PerfProfiler::PerfOptionsPage", "CPU Usage")); setDisplayName(QCoreApplication::translate("PerfProfiler::PerfOptionsPage", "CPU Usage"));
setCategory("T.Analyzer"); setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
setCategoryIcon(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
} }
QWidget *PerfOptionsPage::widget() QWidget *PerfOptionsPage::widget()

View File

@@ -40,8 +40,7 @@ DeviceSettingsPage::DeviceSettingsPage()
setDisplayName(tr("Devices")); setDisplayName(tr("Devices"));
setCategory(Constants::DEVICE_SETTINGS_CATEGORY); setCategory(Constants::DEVICE_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Devices")); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Devices"));
setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_devices.png", setCategoryIconPath(":/projectexplorer/images/settingscategory_devices.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
setWidgetCreator([] { return new DeviceSettingsWidget; }); setWidgetCreator([] { return new DeviceSettingsWidget; });
} }

View File

@@ -81,8 +81,7 @@ SshSettingsPage::SshSettingsPage()
setDisplayName(SshSettingsWidget::tr("SSH")); setDisplayName(SshSettingsWidget::tr("SSH"));
setCategory(Constants::DEVICE_SETTINGS_CATEGORY); setCategory(Constants::DEVICE_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "SSH")); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "SSH"));
setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_devices.png", setCategoryIconPath(":/projectexplorer/images/settingscategory_devices.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
setWidgetCreator([] { return new SshSettingsWidget; }); setWidgetCreator([] { return new SshSettingsWidget; });
} }

View File

@@ -272,8 +272,7 @@ KitOptionsPage::KitOptionsPage()
setDisplayName(tr("Kits")); setDisplayName(tr("Kits"));
setCategory(Constants::KITS_SETTINGS_CATEGORY); setCategory(Constants::KITS_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Kits")); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Kits"));
setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_kits.png", setCategoryIconPath(":/projectexplorer/images/settingscategory_kits.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *KitOptionsPage::widget() QWidget *KitOptionsPage::widget()

View File

@@ -206,8 +206,7 @@ ProjectExplorerSettingsPage::ProjectExplorerSettingsPage()
setDisplayName(tr("General")); setDisplayName(tr("General"));
setCategory(Constants::BUILD_AND_RUN_SETTINGS_CATEGORY); setCategory(Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Build & Run")); setDisplayCategory(QCoreApplication::translate("ProjectExplorer", "Build & Run"));
setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_buildrun.png", setCategoryIconPath(":/projectexplorer/images/settingscategory_buildrun.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *ProjectExplorerSettingsPage::widget() QWidget *ProjectExplorerSettingsPage::widget()

View File

@@ -233,8 +233,7 @@ InterpreterOptionsPage::InterpreterOptionsPage()
setDisplayName(PythonSettings::tr("Interpreters")); setDisplayName(PythonSettings::tr("Interpreters"));
setCategory(Constants::C_PYTHON_SETTINGS_CATEGORY); setCategory(Constants::C_PYTHON_SETTINGS_CATEGORY);
setDisplayCategory(PythonSettings::tr("Python")); setDisplayCategory(PythonSettings::tr("Python"));
setCategoryIcon(Utils::Icon({{":/python/images/settingscategory_python.png", setCategoryIconPath(":/python/images/settingscategory_python.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
Interpreter InterpreterOptionsPage::defaultInterpreter() const Interpreter InterpreterOptionsPage::defaultInterpreter() const

View File

@@ -184,9 +184,7 @@ QbsSettingsPage::QbsSettingsPage()
setCategory(Constants::QBS_SETTINGS_CATEGORY); setCategory(Constants::QBS_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("QbsProjectManager", setDisplayCategory(QCoreApplication::translate("QbsProjectManager",
Constants::QBS_SETTINGS_TR_CATEGORY)); Constants::QBS_SETTINGS_TR_CATEGORY));
setCategoryIcon( setCategoryIconPath(":/qbsprojectmanager/images/settingscategory_qbsprojectmanager.png");
Utils::Icon({{":/qbsprojectmanager/images/settingscategory_qbsprojectmanager.png",
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *QbsSettingsPage::widget() QWidget *QbsSettingsPage::widget()

View File

@@ -127,8 +127,7 @@ QmlJSCodeStyleSettingsPage::QmlJSCodeStyleSettingsPage()
setDisplayName(QCoreApplication::translate("QmlJSTools", Constants::QML_JS_CODE_STYLE_SETTINGS_NAME)); setDisplayName(QCoreApplication::translate("QmlJSTools", Constants::QML_JS_CODE_STYLE_SETTINGS_NAME));
setCategory(QmlJSEditor::Constants::SETTINGS_CATEGORY_QML); setCategory(QmlJSEditor::Constants::SETTINGS_CATEGORY_QML);
setDisplayCategory(QCoreApplication::translate("QmlJSEditor", "Qt Quick")); setDisplayCategory(QCoreApplication::translate("QmlJSEditor", "Qt Quick"));
setCategoryIcon(Utils::Icon({{":/qmljstools/images/settingscategory_qml.png", setCategoryIconPath(":/qmljstools/images/settingscategory_qml.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
QWidget *QmlJSCodeStyleSettingsPage::widget() QWidget *QmlJSCodeStyleSettingsPage::widget()

View File

@@ -39,7 +39,7 @@ QmlProfilerOptionsPage::QmlProfilerOptionsPage()
setDisplayName(tr("QML Profiler")); setDisplayName(tr("QML Profiler"));
setCategory("T.Analyzer"); setCategory("T.Analyzer");
setDisplayCategory(tr("Analyzer")); setDisplayCategory(tr("Analyzer"));
setCategoryIcon(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
} }
QWidget *QmlProfilerOptionsPage::widget() QWidget *QmlProfilerOptionsPage::widget()

View File

@@ -96,9 +96,7 @@ CodeGenSettingsPage::CodeGenSettingsPage()
setCategory(CppTools::Constants::CPP_SETTINGS_CATEGORY); setCategory(CppTools::Constants::CPP_SETTINGS_CATEGORY);
setDisplayCategory( setDisplayCategory(
QCoreApplication::translate("CppTools", CppTools::Constants::CPP_SETTINGS_NAME)); QCoreApplication::translate("CppTools", CppTools::Constants::CPP_SETTINGS_NAME));
setCategoryIcon(Utils::Icon({{":/projectexplorer/images/settingscategory_cpp.png", setCategoryIconPath(":/projectexplorer/images/settingscategory_cpp.png");
Utils::Theme::PanelTextColorDark}},
Utils::Icon::Tint));
setWidgetCreator([] { return new CodeGenSettingsPageWidget; }); setWidgetCreator([] { return new CodeGenSettingsPageWidget; });
} }

View File

@@ -36,6 +36,5 @@ TextEditorOptionsPage::TextEditorOptionsPage(QObject *parent) :
{ {
setCategory(Constants::TEXT_EDITOR_SETTINGS_CATEGORY); setCategory(Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("TextEditor", "Text Editor")); setDisplayCategory(QCoreApplication::translate("TextEditor", "Text Editor"));
setCategoryIcon(Utils::Icon({{":/texteditor/images/settingscategory_texteditor.png", setCategoryIconPath(":/texteditor/images/settingscategory_texteditor.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }

View File

@@ -48,8 +48,7 @@ OptionsPage::OptionsPage(const Settings &settings, QObject *parent) :
setDisplayName(tr("To-Do")); setDisplayName(tr("To-Do"));
setCategory("To-Do"); setCategory("To-Do");
setDisplayCategory(tr("To-Do")); setDisplayCategory(tr("To-Do"));
setCategoryIcon(Utils::Icon({{":/todoplugin/images/settingscategory_todo.png", setCategoryIconPath(":/todoplugin/images/settingscategory_todo.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
void OptionsPage::setSettings(const Settings &settings) void OptionsPage::setSettings(const Settings &settings)

View File

@@ -63,7 +63,7 @@ public:
setDisplayName(QCoreApplication::translate("Valgrind::Internal::ValgrindOptionsPage", "Valgrind")); setDisplayName(QCoreApplication::translate("Valgrind::Internal::ValgrindOptionsPage", "Valgrind"));
setCategory("T.Analyzer"); setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer")); setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
setCategoryIcon(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER); setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
} }
QWidget *widget() override QWidget *widget() override

View File

@@ -48,8 +48,7 @@ VcsBaseOptionsPage::VcsBaseOptionsPage(QObject *parent) : Core::IOptionsPage(par
{ {
setCategory(Constants::VCS_SETTINGS_CATEGORY); setCategory(Constants::VCS_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("VcsBase", "Version Control")); setDisplayCategory(QCoreApplication::translate("VcsBase", "Version Control"));
setCategoryIcon(Utils::Icon({{":/vcsbase/images/settingscategory_vcs.png", setCategoryIconPath(":/vcsbase/images/settingscategory_vcs.png");
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
} }
VcsBaseOptionsPage::~VcsBaseOptionsPage() = default; VcsBaseOptionsPage::~VcsBaseOptionsPage() = default;