Commit 23d3ada7 authored by Alessandro Portale's avatar Alessandro Portale Committed by Eike Ziller

Move reload icon from diff editor to core

It is a generic icon, and will for example also be used
in the Help plugin. Also make it more round and add a 2x variant
for HiDPI.

Change-Id: I2ad4fc1e2d2766042646a47483f129447c2c3c25
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent a56fc82b
......@@ -89,5 +89,7 @@
<file>images/splitbutton_vertical@2x.png</file>
<file>images/panel_manage_button.png</file>
<file>images/pause.png</file>
<file>images/reload_gray.png</file>
<file>images/reload_gray@2x.png</file>
</qresource>
</RCC>
......@@ -195,6 +195,7 @@ const char ICON_DIR[] = ":/core/images/dir.png";
const char ICON_CLEAN_PANE[] = ":/core/images/clean_pane_small.png";
const char ICON_CLEAR[] = ":/core/images/clear.png";
const char ICON_RESET[] = ":/core/images/reset.png";
const char ICON_RELOAD_GRAY[] = ":/core/images/reload_gray.png";
const char ICON_MAGNIFIER[] = ":/core/images/magnifier.png";
const char ICON_TOGGLE_SIDEBAR[] = ":/core/images/sidebaricon.png";
const char ICON_CLOSE_DOCUMENT[] = ":/core/images/button_close.png";
......
......@@ -333,7 +333,7 @@ QWidget *DiffEditor::toolBar()
slotDescriptionVisibilityChanged();
QToolButton *reloadButton = new QToolButton(m_toolBar);
reloadButton->setIcon(QIcon(QLatin1String(Constants::ICON_RELOAD)));
reloadButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RELOAD_GRAY)));
reloadButton->setToolTip(tr("Reload Editor"));
m_toolBar->addWidget(reloadButton);
......
<RCC>
<qresource prefix="/diffeditor">
<file>images/reload.png</file>
<file>images/sidebysidediff.png</file>
<file>images/unifieddiff.png</file>
<file>images/topbar.png</file>
......
......@@ -42,7 +42,6 @@ const char G_TOOLS_DIFF[] = "QtCreator.Group.Tools.Options";
const char ICON_SIDE_BY_SIDE_DIFF[] = ":/diffeditor/images/sidebysidediff.png";
const char ICON_UNIFIED_DIFF[] = ":/diffeditor/images/unifieddiff.png";
const char ICON_RELOAD[] = ":/diffeditor/images/reload.png";
const char ICON_TOP_BAR[] = ":/diffeditor/images/topbar.png";
} // namespace Constants
......
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