diff --git a/src/plugins/debugger/analyzer/analyzer.pri b/src/plugins/debugger/analyzer/analyzer.pri index 2ae4afc59873551c96b8c2105dc1f93cfd6d655e..dc2d12eff6f7eac9419ed17e25507fa4d8288260 100644 --- a/src/plugins/debugger/analyzer/analyzer.pri +++ b/src/plugins/debugger/analyzer/analyzer.pri @@ -20,8 +20,7 @@ HEADERS += \ $$PWD/analyzerutils.h \ $$PWD/detailederrorview.h \ $$PWD/diagnosticlocation.h \ - $$PWD/startremotedialog.h \ - $$PWD/analyzericons.h + $$PWD/startremotedialog.h RESOURCES += \ $$PWD/analyzerbase.qrc diff --git a/src/plugins/debugger/analyzer/analyzerbase.qrc b/src/plugins/debugger/analyzer/analyzerbase.qrc index a6e642fc61b66100e81112d0f4e361e772d22f6f..57e529f246e8c9b93d96f09ed2d09dc2b14152eb 100644 --- a/src/plugins/debugger/analyzer/analyzerbase.qrc +++ b/src/plugins/debugger/analyzer/analyzerbase.qrc @@ -1,7 +1,5 @@ <RCC> <qresource prefix="/"> <file>images/analyzer_category.png</file> - <file>images/analyzer_overlay_small.png</file> - <file>images/analyzer_overlay_small@2x.png</file> </qresource> </RCC> diff --git a/src/plugins/debugger/analyzer/analyzericons.h b/src/plugins/debugger/analyzer/analyzericons.h deleted file mode 100644 index 8976379a32ffbca86ad155def5ee1c867f7f198e..0000000000000000000000000000000000000000 --- a/src/plugins/debugger/analyzer/analyzericons.h +++ /dev/null @@ -1,42 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -#pragma once - -#include <utils/icon.h> - -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}}); - -} // namespace Icons -} // namespace Debugger diff --git a/src/plugins/debugger/analyzer/analyzerruncontrol.cpp b/src/plugins/debugger/analyzer/analyzerruncontrol.cpp index b72d59984972d54a583569bbeacf5c8d1b7d812c..41b1b5ea8f7f116acd2d062b9a4cc9705e67b588 100644 --- a/src/plugins/debugger/analyzer/analyzerruncontrol.cpp +++ b/src/plugins/debugger/analyzer/analyzerruncontrol.cpp @@ -24,12 +24,12 @@ ** ****************************************************************************/ -#include "analyzericons.h" #include "analyzermanager.h" #include "analyzerruncontrol.h" #include <projectexplorer/project.h> #include <projectexplorer/runconfigurationaspects.h> +#include <projectexplorer/projectexplorericons.h> #include <projectexplorer/target.h> #include <QDebug> @@ -42,7 +42,7 @@ namespace Debugger { AnalyzerRunControl::AnalyzerRunControl(RunConfiguration *runConfiguration, Core::Id runMode) : RunControl(runConfiguration, runMode) { - setIcon(Icons::ANALYZER_CONTROL_START_TOOLBAR); + setIcon(Icons::ANALYZER_START_SMALL_TOOLBAR); } } // namespace Debugger diff --git a/src/plugins/debugger/debugger.qbs b/src/plugins/debugger/debugger.qbs index 2241b60da7c7ee4b0b2c021f24f59443bb25bc8c..276e2967829808a093c946f1c329ddb3bedb8f2d 100644 --- a/src/plugins/debugger/debugger.qbs +++ b/src/plugins/debugger/debugger.qbs @@ -246,7 +246,6 @@ QtcPlugin { files: [ "analyzerbase.qrc", "analyzerconstants.h", - "analyzericons.h", "analyzermanager.h", "analyzerrunconfigwidget.cpp", "analyzerrunconfigwidget.h", diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp index 208558e895408d5c42e6a199016fbdaf757f91d8..d3d5ceb3f859c0b13d8c5f2db3c57ef304654512 100644 --- a/src/plugins/debugger/debuggermainwindow.cpp +++ b/src/plugins/debugger/debuggermainwindow.cpp @@ -26,7 +26,6 @@ #include "debuggermainwindow.h" #include "debuggerconstants.h" #include "debuggerinternalconstants.h" -#include "analyzer/analyzericons.h" #include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actionmanager.h> diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 417b3d501e4088221a7eed3708166a0cedbf2c23..06e7b258c3935d15be1fb867dc2d2a2fc8a7956d 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -72,7 +72,6 @@ #include "gdb/startgdbserverdialog.h" #include "analyzer/analyzerconstants.h" -#include "analyzer/analyzericons.h" #include "analyzer/analyzermanager.h" #include "analyzer/analyzerruncontrol.h" #include "analyzer/analyzerstartparameters.h" @@ -3571,7 +3570,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_TOOLBAR.icon()); + action->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL_TOOLBAR.icon()); action->setEnabled(true); return action; } diff --git a/src/plugins/debugger/analyzer/images/analyzer_overlay_small.png b/src/plugins/projectexplorer/images/analyzer_overlay_small.png similarity index 100% rename from src/plugins/debugger/analyzer/images/analyzer_overlay_small.png rename to src/plugins/projectexplorer/images/analyzer_overlay_small.png diff --git a/src/plugins/debugger/analyzer/images/analyzer_overlay_small@2x.png b/src/plugins/projectexplorer/images/analyzer_overlay_small@2x.png similarity index 100% rename from src/plugins/debugger/analyzer/images/analyzer_overlay_small@2x.png rename to src/plugins/projectexplorer/images/analyzer_overlay_small@2x.png diff --git a/src/plugins/projectexplorer/projectexplorer.qrc b/src/plugins/projectexplorer/projectexplorer.qrc index 701466ac8038fa6670a613ba97a474d2d5d31695..6f2bac4a90383bb23279a5011efae943e9d4fb9b 100644 --- a/src/plugins/projectexplorer/projectexplorer.qrc +++ b/src/plugins/projectexplorer/projectexplorer.qrc @@ -22,6 +22,8 @@ <file>images/run_mask@2x.png</file> <file>images/debugger_overlay_small.png</file> <file>images/debugger_overlay_small@2x.png</file> + <file>images/analyzer_overlay_small.png</file> + <file>images/analyzer_overlay_small@2x.png</file> <file>images/session.png</file> <file>images/targetrunselected.png</file> <file>images/targetrunselected@2x.png</file> diff --git a/src/plugins/projectexplorer/projectexplorericons.h b/src/plugins/projectexplorer/projectexplorericons.h index 72cbda74d6d071bbad49a7b6456e565fcb3b459a..e65e5ecd964b4dacffdec888dc577f4776b396bc 100644 --- a/src/plugins/projectexplorer/projectexplorericons.h +++ b/src/plugins/projectexplorer/projectexplorericons.h @@ -58,6 +58,13 @@ const Utils::Icon DEBUG_START_SMALL({ const Utils::Icon DEBUG_START_SMALL_TOOLBAR({ {QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunToolBarColor}, {QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}}); +const Utils::Icon ANALYZER_START_SMALL({ + {QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunColor}, + {QLatin1String(":/projectexplorer/images/analyzer_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, + Utils::Icon::MenuTintedStyle); +const Utils::Icon ANALYZER_START_SMALL_TOOLBAR({ + {QLatin1String(":/core/images/run_small.png"), Utils::Theme::IconsRunToolBarColor}, + {QLatin1String(":/projectexplorer/images/analyzer_overlay_small.png"), Utils::Theme::IconsBaseColor}}); const Utils::Icon BUILDSTEP_MOVEUP({ {QLatin1String(":/projectexplorer/images/buildstepmoveup.png"), Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint); diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index 917703743c5aced34e8b82e9a82299eccb2186ca..39bedd859ed8ef00ecf4bd7965c4f0c1c4a3d9a2 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -46,7 +46,6 @@ #include <debugger/debuggerconstants.h> #include <debugger/analyzer/analyzerconstants.h> -#include <debugger/analyzer/analyzericons.h> #include <debugger/analyzer/analyzermanager.h> #include <debugger/analyzer/analyzerstartparameters.h> #include <debugger/analyzer/analyzerutils.h> @@ -297,7 +296,7 @@ CallgrindTool::CallgrindTool(QObject *parent) editorContextMenu->addSeparator(analyzerContext); auto action = new QAction(tr("Profile Costs of This Function and Its Callees"), this); - action->setIcon(Debugger::Icons::ANALYZER_CONTROL_START.icon()); + action->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL.icon()); connect(action, &QAction::triggered, this, &CallgrindTool::handleShowCostsOfFunction); Command *cmd = ActionManager::registerAction(action, "Analyzer.Callgrind.ShowCostsOfFunction", diff --git a/src/tools/icons/qtcreatoricons.svg b/src/tools/icons/qtcreatoricons.svg index acdb7bf914b26b6fd5e445e256a38e48f2c9a1d2..4215cc2cd8975e2a754b981d08c76f50a5c81ab6 100644 --- a/src/tools/icons/qtcreatoricons.svg +++ b/src/tools/icons/qtcreatoricons.svg @@ -2416,7 +2416,7 @@ y="578.5" /> </g> <g - id="src/plugins/debugger/analyzer/images/analyzer_overlay_small" + id="src/plugins/projectexplorer/images/analyzer_overlay_small" transform="translate(16,0)"> <rect id="rect4959-4-5"