Mercurial > octave-nkf
diff libgui/src/octave-gui.cc @ 19902:c7c50030e76c
allow qt graphics toolkit to be used in --no-gui mode (bug #44116)
* octave-gui.cc (octave_start_gui): Install Qt plot functions and
register the qt plot toolkit here.
* main-window.cc (main_window::construct): Not here.
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Fri, 27 Feb 2015 09:44:58 -0500 |
parents | 19755f4fc851 |
children | 857a8f018f53 |
line wrap: on
line diff
--- a/libgui/src/octave-gui.cc Thu Feb 26 19:24:59 2015 -0500 +++ b/libgui/src/octave-gui.cc Fri Feb 27 09:44:58 2015 -0500 @@ -53,6 +53,9 @@ #include "octave-gui.h" #include "thread-manager.h" +#include "builtin-defun-decls.h" +#include "__init_qt__.h" + // Allow the Octave interpreter to start as in CLI mode with a // QApplication context so that it can use Qt for things like plotting // and UI widgets. @@ -107,6 +110,10 @@ if (show_gui_msgs.empty ()) qInstallMsgHandler (message_handler); + install___init_qt___functions (); + + Fregister_graphics_toolkit (ovl ("qt")); + if (start_gui) { QApplication application (argc, argv);