Mercurial > octave
changeset 28398:287ffa8cfeae
remove obsolete code from variable editor
* variable-editor.cc/h (add_action): removed method, which is not used
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Tue, 02 Jun 2020 22:47:07 +0200 |
parents | 37c5532e558c |
children | 80f873d55bff |
files | libgui/src/variable-editor.cc libgui/src/variable-editor.h |
diffstat | 2 files changed, 0 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc Tue Jun 02 20:02:39 2020 +0200 +++ b/libgui/src/variable-editor.cc Tue Jun 02 22:47:07 2020 +0200 @@ -1123,29 +1123,6 @@ } } - // Add an action to a menu or the widget itself. - - QAction* - variable_editor::add_action (QMenu *menu, const QIcon& icon, - const QString& text, - const char *member) - { - QAction *a; - - if (menu) - a = menu->addAction (icon, text, this, member); - else - { - a = new QAction (this); - connect (a, SIGNAL (triggered ()), this, member); - } - - addAction (a); // important for shortcut context - a->setShortcutContext (Qt::WidgetWithChildrenShortcut); - - return a; - } - void variable_editor::edit_variable (const QString& name, const octave_value& val) {
--- a/libgui/src/variable-editor.h Tue Jun 02 20:02:39 2020 +0200 +++ b/libgui/src/variable-editor.h Tue Jun 02 22:47:07 2020 +0200 @@ -351,9 +351,6 @@ private: - QAction * add_action (QMenu *menu, const QIcon& icon, const QString& text, - const char *member); - dw_main_window *m_main; QToolBar *m_tool_bar;