Commit ad55f0bd authored by Alessandro Portale's avatar Alessandro Portale

Debugger: Proper menu icon for "Profile Costs of This Function..."

Don't use the toolbar variant, there.

Change-Id: I820d3e51567bfeff4eec2277f20b52fb617d1eee
Reviewed-by: Ulf Hermann's avatarUlf Hermann <ulf.hermann@qt.io>
parent 07089709
......@@ -31,6 +31,10 @@ namespace Debugger {
namespace Icons {
const Utils::Icon ANALYZER_CONTROL_START({
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor},
{QLatin1String(":/images/analyzer_overlay_small.png"), Utils::Theme::PanelTextColorMid}},
Utils::Icon::MenuTintedStyle);
const Utils::Icon ANALYZER_CONTROL_START_TOOLBAR({
{QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunToolBarColor},
{QLatin1String(":/images/analyzer_overlay_small.png"), Utils::Theme::IconsBaseColor}});
const Utils::Icon MODE_ANALYZE_CLASSIC(
......
......@@ -42,7 +42,7 @@ namespace Debugger {
AnalyzerRunControl::AnalyzerRunControl(RunConfiguration *runConfiguration, Core::Id runMode)
: RunControl(runConfiguration, runMode)
{
setIcon(Icons::ANALYZER_CONTROL_START);
setIcon(Icons::ANALYZER_CONTROL_START_TOOLBAR);
}
} // namespace Debugger
......@@ -3569,7 +3569,7 @@ void registerToolbar(const QByteArray &perspectiveId, const ToolbarDescription &
QAction *createStartAction()
{
auto action = new QAction(DebuggerMainWindow::tr("Start"), DebuggerPlugin::instance());
action->setIcon(Icons::ANALYZER_CONTROL_START.icon());
action->setIcon(Icons::ANALYZER_CONTROL_START_TOOLBAR.icon());
action->setEnabled(true);
return action;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment