diff libgui/src/history-dockwidget.h @ 16069:0486a29d780f

gui: fix updating history and workspace widget for mxe-octave * history-dock-widget.h: new flag _update_event_enabled for disabling and enabling the update event * histroy-dock-widget.cc(construct): change update timer to periodic and to an interval of 500 ms, enable update * history-dock-widget.cc(request_history_model_update): if update is enabled post update event and disable update in order to prevent further events * history-dock-widget.cc(update_history_callback): reenalbe update when update is complete * workspace-model.h: new flag _update_event_enabled for disabling and enabling the update event * workspace-model.cc(workspace_model): change update timer to periodic, enable update * workspace-model.cc(request_update_workspace): if update is enabled post update event and disable update in order to prevent further events * workspace-model.cc(update_workspace_callback): reenalbe update when update is complete
author Torsten <ttl@justmail.de>
date Sun, 17 Feb 2013 21:17:46 +0100
parents c3057d80cf91
children d4b6ad43bc87
line wrap: on
line diff
--- a/libgui/src/history-dockwidget.h	Sat Feb 16 22:21:13 2013 -0500
+++ b/libgui/src/history-dockwidget.h	Sun Feb 17 21:17:46 2013 +0100
@@ -66,6 +66,7 @@
   QTimer _update_history_model_timer;
 
   void update_history_callback (void);
+  bool _update_event_enabled;
 };
 
 #endif // HISTORYDOCKWIDGET_H