Utils: Create _TOOLBAR variants of some standard icons

And use these in scxmleditor. qmldesigner will also use them.

Change-Id: Ifd057531873a8cb8da3d6e033fbf606f17638c3e
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2016-12-12 12:55:19 +01:00
parent 6bb0880a6b
commit 1ff8b46d0a
4 changed files with 21 additions and 5 deletions

View File

@@ -46,6 +46,7 @@
#include <utils/qtcassert.h>
#include <utils/icon.h>
#include <utils/utilsicons.h>
#include <QVBoxLayout>
@@ -137,11 +138,11 @@ void ScxmlEditorData::fullInit()
// Create undo/redo group/actions
m_undoGroup = new QUndoGroup(m_widgetToolBar);
m_undoAction = m_undoGroup->createUndoAction(m_widgetToolBar);
m_undoAction->setIcon(Utils::Icon({{":/utils/images/undo.png", Utils::Theme::IconsBaseColor}}).icon());
m_undoAction->setIcon(Utils::Icons::UNDO_TOOLBAR.icon());
m_undoAction->setToolTip(tr("Undo (Ctrl + Z)"));
m_redoAction = m_undoGroup->createRedoAction(m_widgetToolBar);
m_redoAction->setIcon(Utils::Icon({{":/utils/images/redo.png", Utils::Theme::IconsBaseColor}}).icon());
m_redoAction->setIcon(Utils::Icons::REDO_TOOLBAR.icon());
m_redoAction->setToolTip(tr("Redo (Ctrl + Y)"));
ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, m_contexts);