Changed: #1303 Added icons for undo/redo actions.

hg/feature/gsoc2012-fabien
dnk-88 14 years ago
parent 68ab06f7c0
commit ae0a26855f

@ -1,6 +1,8 @@
<RCC> <RCC>
<qresource prefix="/core"> <qresource prefix="/core">
<file>icons/ic_nel_add_item.png</file> <file>icons/ic_nel_add_item.png</file>
<file>icons/ic_nel_redo.png</file>
<file>icons/ic_nel_undo.png</file>
<file>icons/ic_nel_crash.png</file> <file>icons/ic_nel_crash.png</file>
<file>icons/ic_nel_delete_item.png</file> <file>icons/ic_nel_delete_item.png</file>
<file>icons/ic_nel_down_item.png</file> <file>icons/ic_nel_down_item.png</file>

@ -110,6 +110,8 @@ const char * const ICON_NEW = ":/core/icons/ic_nel_new.png";
const char * const ICON_SAVE = ":/core/icons/ic_nel_save.png"; const char * const ICON_SAVE = ":/core/icons/ic_nel_save.png";
const char * const ICON_SAVE_AS = ":/core/icons/ic_nel_save_as.png"; const char * const ICON_SAVE_AS = ":/core/icons/ic_nel_save_as.png";
const char * const ICON_CRASH = ":/core/icons/ic_nel_crash.png"; const char * const ICON_CRASH = ":/core/icons/ic_nel_crash.png";
const char * const ICON_UNDO = ":/core/icons/ic_nel_undo.png";
const char * const ICON_REDO = ":/core/icons/ic_nel_redo.png";
} // namespace Constants } // namespace Constants
} // namespace Core } // namespace Core

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -384,8 +384,12 @@ void MainWindow::createMenus()
m_editMenu = m_menuBar->addMenu(tr("&Edit")); m_editMenu = m_menuBar->addMenu(tr("&Edit"));
QAction *undoAction = m_undoGroup->createUndoAction(this); QAction *undoAction = m_undoGroup->createUndoAction(this);
menuManager()->registerAction(undoAction, Constants::UNDO);
undoAction->setIcon(QIcon(Constants::ICON_UNDO));
undoAction->setShortcut(QKeySequence::Undo); undoAction->setShortcut(QKeySequence::Undo);
QAction *redoAction = m_undoGroup->createRedoAction(this); QAction *redoAction = m_undoGroup->createRedoAction(this);
menuManager()->registerAction(redoAction, Constants::REDO);
redoAction->setIcon(QIcon(Constants::ICON_REDO));
redoAction->setShortcut(QKeySequence::Redo); redoAction->setShortcut(QKeySequence::Redo);
m_editMenu->addAction(undoAction); m_editMenu->addAction(undoAction);
m_editMenu->addAction(redoAction); m_editMenu->addAction(redoAction);

Loading…
Cancel
Save