Commit 338d0cea authored by Alessandro Portale's avatar Alessandro Portale

ProjectExplorer: Use a better "Cancel build" icon in the menu

Change-Id: I442a76a7a4e98b358ac3714eef8e60d482a6e39b
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 595cc6e3
......@@ -41,6 +41,7 @@
#include <texteditor/fontsettings.h>
#include <texteditor/behaviorsettings.h>
#include <utils/ansiescapecodehandler.h>
#include <utils/proxyaction.h>
#include <utils/theme/theme.h>
#include <QIcon>
......@@ -164,7 +165,9 @@ CompileOutputWindow::CompileOutputWindow(QAction *cancelBuildAction) :
p.setColor(QPalette::HighlightedText, activeHighlightedText);
m_outputWindow->setPalette(p);
m_cancelBuildButton->setDefaultAction(cancelBuildAction);
Utils::ProxyAction *cancelBuildProxyButton =
Utils::ProxyAction::proxyActionWithIcon(cancelBuildAction, Core::Icons::STOP_SMALL_TOOLBAR.icon());
m_cancelBuildButton->setDefaultAction(cancelBuildProxyButton);
m_zoomInButton->setToolTip(tr("Increase Font Size"));
m_zoomInButton->setIcon(Core::Icons::PLUS.icon());
m_zoomOutButton->setToolTip(tr("Decrease Font Size"));
......
......@@ -882,7 +882,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
mbuild->addAction(cmd, Constants::G_BUILD_CLEAN);
// cancel build action
dd->m_cancelBuildAction = new QAction(Core::Icons::STOP_SMALL_TOOLBAR.icon(), tr("Cancel Build"), this);
dd->m_cancelBuildAction = new QAction(Core::Icons::STOP_SMALL.icon(), tr("Cancel Build"), this);
cmd = ActionManager::registerAction(dd->m_cancelBuildAction, Constants::CANCELBUILD);
mbuild->addAction(cmd, Constants::G_BUILD_CANCEL);
......
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