changeset 16718:0495339998f8

context menu of terminal widget: add icons and an entry to clear the console * QTerminal.h(constructor): add context menu to clear the console using the related slot of main_window, add icons for copy and paste menu entries
author Torsten <ttl@justmail.de>
date Sun, 02 Jun 2013 11:10:16 +0200
parents 9ad6e7d4fa42
children 0f6f14e3ac6a
files libgui/qterminal/libqterminal/QTerminal.h
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/QTerminal.h	Sun Jun 02 09:13:00 2013 +0200
+++ b/libgui/qterminal/libqterminal/QTerminal.h	Sun Jun 02 11:10:16 2013 +0200
@@ -102,13 +102,16 @@
 
     _contextMenu = new QMenu (this);
 
-    QAction *copyAction 
-      = _contextMenu->addAction (tr ("Copy"),
-                                 this, SLOT (copyClipboard ()));
+    _contextMenu->addAction (QIcon (":/actions/icons/editcopy.png"),
+                             tr ("Copy"), this, SLOT (copyClipboard ()));
 
-    QAction *pasteAction
-      = _contextMenu->addAction (tr ("Paste"),
-                                 this, SLOT (pasteClipboard ()));
+    _contextMenu->addAction (QIcon (":/actions/icons/editpaste.png"),
+                            tr ("Paste"), this, SLOT (pasteClipboard ()));
+
+    _contextMenu->addSeparator ();
+
+    _contextMenu->addAction (tr ("Clear All"), parent (),
+                             SLOT (handle_clear_command_window_request ()));
 
     connect (this, SIGNAL (customContextMenuRequested (QPoint)),
              this, SLOT (handleCustomContextMenuRequested (QPoint)));