Mercurial > octave-nkf
diff libgui/src/history-dockwidget.h @ 15447:352349219529
Added multiline copy and execution to command history in IDE (bug #36884)
* history-dockwidget.cc (history_dock_widget::ctxMenu) : New function.
(history_dock_widget::handle_contextmenu_copy) : New function.
(history_dock_widget::handle_contextmenu_evaluate) : New function.
(history_dock_widget::history_dock_widget) : Connected popup menu to QListView.
(history_dock_widget::handle_double_click) : Append <CR> to selected history to actually execute the command.
author | John Swensen <jpswensen@gmail.com> |
---|---|
date | Thu, 27 Sep 2012 13:24:59 -0400 |
parents | 7f423c6111c6 |
children | bbbb89cc338f |
line wrap: on
line diff
--- a/libgui/src/history-dockwidget.h Thu Sep 27 09:29:45 2012 -0400 +++ b/libgui/src/history-dockwidget.h Thu Sep 27 13:24:59 2012 -0400 @@ -53,6 +53,9 @@ void closeEvent (QCloseEvent *event); private slots: void handle_double_click (QModelIndex modelIndex); + void handle_contextmenu_copy(bool flag); + void handle_contextmenu_evaluate(bool flag); + void ctxMenu(const QPoint &pos); private: void construct ();