Mercurial > octave
diff libgui/src/main-window.h @ 16451:d4c3736e1e28
dynamically allocate Qt widgets
* main-window.h, main-window.cc: Oops, I guess dynamically allocated
widgets is more consistent with the Qt way.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 06 Apr 2013 23:43:23 -0400 |
parents | 3207f1d62e74 |
children | 744ff2fe11ce |
line wrap: on
line diff
--- a/libgui/src/main-window.h Sat Apr 06 19:08:14 2013 -0400 +++ b/libgui/src/main-window.h Sat Apr 06 23:43:23 2013 -0400 @@ -152,14 +152,14 @@ void exit_callback (void); // Data models. - workspace_model _workspace_model; + workspace_model *_workspace_model; // Toolbars. - QStatusBar status_bar; + QStatusBar *status_bar; // Subwindows. - terminal_dock_widget command_window; - history_dock_widget history_window; + terminal_dock_widget *command_window; + history_dock_widget *history_window; files_dock_widget *file_browser_window; #ifdef HAVE_QSCINTILLA