From 174ac64ef87545ce01068b436b9f6fff78395b53 Mon Sep 17 00:00:00 2001 From: dt_ Date: Mon, 30 May 2011 17:02:03 +0200 Subject: [PATCH] Add small stop icon. Use the same as the small debug icon. Task-Nr: QTCREATORBUG-5003 Change-Id: Iee32a7161869dc611d017cde53a4056b8be56315 Reviewed-on: http://codereview.qt.nokia.com/246 Reviewed-by: Qt Sanity Bot Reviewed-by: Daniel Teske --- src/plugins/projectexplorer/appoutputpane.cpp | 5 ++++- src/plugins/projectexplorer/images/stop_small.png | Bin 0 -> 314 bytes src/plugins/projectexplorer/projectexplorer.qrc | 1 + .../projectexplorer/projectexplorerconstants.h | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/plugins/projectexplorer/images/stop_small.png diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 61b500b03aa..99b62823584 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -77,7 +77,7 @@ AppOutputPane::RunControlTab::RunControlTab(RunControl *rc, Core::OutputWindow * AppOutputPane::AppOutputPane() : m_mainWidget(new QWidget), m_tabWidget(new QTabWidget), - m_stopAction(new QAction(QIcon(QLatin1String(Constants::ICON_STOP)), tr("Stop"), this)), + m_stopAction(new QAction(tr("Stop"), this)), m_reRunButton(new QToolButton), m_stopButton(new QToolButton), m_attachButton(new QToolButton) @@ -94,6 +94,9 @@ AppOutputPane::AppOutputPane() : Core::ActionManager *am = Core::ICore::instance()->actionManager(); Core::Context globalcontext(Core::Constants::C_GLOBAL); + QIcon stopIcon = QIcon(QLatin1String(Constants::ICON_STOP)); + stopIcon.addFile(QLatin1String(Constants::ICON_STOP_SMALL)); + m_stopAction->setIcon(stopIcon); m_stopAction->setToolTip(tr("Stop")); m_stopAction->setEnabled(false); diff --git a/src/plugins/projectexplorer/images/stop_small.png b/src/plugins/projectexplorer/images/stop_small.png new file mode 100644 index 0000000000000000000000000000000000000000..1063d089985794a49542c61f78e8d8514f7f9607 GIT binary patch literal 314 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7BuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFx>HUaSW-rwPdm*SF?eDtNPK+QMXFZUrb#px48N% zo19~aK#Yc{j@V?i%S%j@%vN?WpKSSXfBqQ<4y8lW3ce)zpKx7vnCseZCArSJMw0`Z zUrSB3IH~2gkN;AGMRC&H%2?*}#SdH=n=aiKvs)y%images/targetaddbutton_disabled.png images/targetremovebutton_disabled.png images/window.png + images/stop_small.png diff --git a/src/plugins/projectexplorer/projectexplorerconstants.h b/src/plugins/projectexplorer/projectexplorerconstants.h index f28bf1c2267..44afd1ec1b4 100644 --- a/src/plugins/projectexplorer/projectexplorerconstants.h +++ b/src/plugins/projectexplorer/projectexplorerconstants.h @@ -164,6 +164,7 @@ const char * const ICON_RUN = ":/projectexplorer/images/run.png"; const char * const ICON_RUN_SMALL = ":/projectexplorer/images/run_small.png"; const char * const ICON_DEBUG_SMALL = ":/projectexplorer/images/debugger_start_small.png"; const char * const ICON_STOP = ":/projectexplorer/images/stop.png"; +const char * const ICON_STOP_SMALL = ":/projectexplorer/images/stop_small.png"; const char * const ICON_TOOLCHAIN_SETTINGS_CATEGORY = ":projectexplorer/images/build.png"; // FIXME: Need an icon! const char * const ICON_WINDOW = ":/projectexplorer/images/window.png";