Mercurial > octave-nkf
changeset 19943:4e15e8cb16ae
gui: added icons menu items that have icons used elsewhere
* libgui/src/history-dock-widget.cc
history_dock_widget::ctxMenu): use icon for copy and create script.
* libgui/src/main-window.cc
(main_window::construct_edit_menu): use icon on find files menu
author | John Donoghue |
---|---|
date | Thu, 05 Mar 2015 09:24:31 -0500 |
parents | 7d888f9e94eb |
children | 06979876af7d |
files | libgui/src/history-dock-widget.cc libgui/src/main-window.cc |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/history-dock-widget.cc Thu Mar 05 23:05:23 2015 +0100 +++ b/libgui/src/history-dock-widget.cc Thu Mar 05 09:24:31 2015 -0500 @@ -179,10 +179,12 @@ void history_dock_widget::ctxMenu (const QPoint &xpos) { QMenu menu (this); - menu.addAction (tr ("Copy"), this, SLOT (handle_contextmenu_copy (bool))); + menu.addAction (resource_manager::icon ("edit-copy"), + tr ("Copy"), this, SLOT (handle_contextmenu_copy (bool))); menu.addAction (tr ("Evaluate"), this, SLOT (handle_contextmenu_evaluate (bool))); - menu.addAction (tr ("Create script"), this, + menu.addAction (resource_manager::icon ("document-new"), + tr ("Create script"), this, SLOT (handle_contextmenu_create_script (bool))); menu.exec (_history_list_view->mapToGlobal (xpos)); }
--- a/libgui/src/main-window.cc Thu Mar 05 23:05:23 2015 +0100 +++ b/libgui/src/main-window.cc Thu Mar 05 09:24:31 2015 -0500 @@ -1714,7 +1714,9 @@ edit_menu->addSeparator (); - _find_files_action = edit_menu->addAction (tr ("Find Files...")); + _find_files_action + = edit_menu->addAction (resource_manager::icon ("edit-find"), + tr ("Find Files...")); edit_menu->addSeparator ();