diff libgui/src/workspace-view.h @ 24775:3da6c628873a

clear variable via context menu of workspace view (bug #53149) * workspace-view.cc (contextmenu_requested): add action for clearing variable; (handle_contextmenu_clear): new slot for new action; (relay_contextmenu_command): new boolean argument whether variable is used as value or as string in the executed command * workspace-view.h: new boolean argument for relay_contextmenu_command, default is false
author Torsten <mttl@mailbox.org>
date Sun, 18 Feb 2018 20:59:47 +0100
parents 08c92c9d48e3
children 6652d3823428
line wrap: on
line diff
--- a/libgui/src/workspace-view.h	Fri Feb 16 22:59:14 2018 +0100
+++ b/libgui/src/workspace-view.h	Sun Feb 18 20:59:47 2018 +0100
@@ -87,6 +87,7 @@
     void handle_contextmenu_copy_value (void);
     void handle_contextmenu_rename (void);
     void handle_contextmenu_edit (void);
+    void handle_contextmenu_clear (void);
     void handle_contextmenu_disp (void);
     void handle_contextmenu_plot (void);
     void handle_contextmenu_stem (void);
@@ -99,7 +100,7 @@
 
   private:
 
-    void relay_contextmenu_command (const QString& cmdname);
+    void relay_contextmenu_command (const QString& cmdname, bool str = false);
 
     QString get_var_name (const QModelIndex& index);