Mercurial > hg > octave-nkf
diff libgui/src/history-dock-widget.cc @ 20117: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 | 19755f4fc851 |
children | a8cc8318da8c |
line wrap: on
line diff
--- a/libgui/src/history-dock-widget.cc +++ b/libgui/src/history-dock-widget.cc @@ -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)); }