comparison scripts/plot/util/copyobj.m @ 31751:e863066429f1

assume QOffscreenSurface is available QOffscreenSurface was introduced in Qt 5.1. * acinclude.m4 (OCTAVE_CHECK_QT_OPENGL_OFFSCREEN_OK): Delete. (OCTAVE_CHECK_QT_VERSION): Delete use. * configure.ac, geometryimages.m, interpimages.m, module.mk, plotimages.m, sparseimages.m, splineimages.m, GLCanvas.cc, GLCanvas.h, getframe.m, __check_rendering_capability__.m, copyobj.m, hgsave.m, jupyter-notebook.tst, publish.tst: Eliminate checks for Qt OffscreenSurface feature. Assume it is always available.
author John W. Eaton <jwe@octave.org>
date Tue, 17 Jan 2023 13:11:02 -0500
parents 597f3ee61a48
children 2e484f9f1f18
comparison
equal deleted inserted replaced
31750:85723a361b2b 31751:e863066429f1
201 %! set (hnew, "name", "Copyobj"); 201 %! set (hnew, "name", "Copyobj");
202 %! drawnow (); 202 %! drawnow ();
203 %! set (hnew, "position", [scrn(3)/2, scrn(4)/2-pos(4)/2, pos(3:4)]); 203 %! set (hnew, "position", [scrn(3)/2, scrn(4)/2-pos(4)/2, pos(3:4)]);
204 %! drawnow (); 204 %! drawnow ();
205 205
206 %!testif HAVE_MAGICK; (have_window_system () && __have_feature__ ("QT_OFFSCREEN") && any (strcmp ("qt", available_graphics_toolkits ()))); 206 %!testif HAVE_MAGICK; (have_window_system () && any (strcmp ("qt", available_graphics_toolkits ())));
207 %! toolkit = graphics_toolkit (); 207 %! toolkit = graphics_toolkit ();
208 %! graphics_toolkit ("qt"); 208 %! graphics_toolkit ("qt");
209 %! unwind_protect 209 %! unwind_protect
210 %! h1 = figure ("visible", "off", "paperposition", [0.25, 2.5, 8.0, 6.0]); 210 %! h1 = figure ("visible", "off", "paperposition", [0.25, 2.5, 8.0, 6.0]);
211 %! x = 0:0.1:2*pi; 211 %! x = 0:0.1:2*pi;