Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
16068:b309a5da17f5 | 16069:0486a29d780f |
---|---|
64 QStringListModel *_history_model; | 64 QStringListModel *_history_model; |
65 | 65 |
66 QTimer _update_history_model_timer; | 66 QTimer _update_history_model_timer; |
67 | 67 |
68 void update_history_callback (void); | 68 void update_history_callback (void); |
69 bool _update_event_enabled; | |
69 }; | 70 }; |
70 | 71 |
71 #endif // HISTORYDOCKWIDGET_H | 72 #endif // HISTORYDOCKWIDGET_H |