diff gui/src/history-dockwidget.cc @ 14814:61c80e9326a8 gui

Clearing the command history works. * history-dockwidget: Added method to clear the model. * main-window: Added new slot to clear the history. * octave-event.h: Created new event to delete the command history.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Thu, 28 Jun 2012 15:46:43 +0200
parents 9d9eb9bac65e
children 9e62d5a3a45e
line wrap: on
line diff
--- a/gui/src/history-dockwidget.cc	Thu Jun 28 12:21:58 2012 +0200
+++ b/gui/src/history-dockwidget.cc	Thu Jun 28 15:46:43 2012 +0200
@@ -131,6 +131,12 @@
 }
 
 void
+history_dock_widget::reset_model ()
+{
+  _history_model->setStringList (QStringList ());
+}
+
+void
 history_dock_widget::closeEvent (QCloseEvent *event)
 {
   emit active_changed (false);