diff libgui/graphics/Canvas.h @ 20145:248f2f2e7d48

Return correct x,y coordinates for keystroke with ginput in Qt (bug #44834). * Canvas.h (updateCurrentPoint (fig, obj)): New prototype for 2-argument form of updateCurrentPoint used with QKeyEvents. * Canvas.cc (updateCurrentPoint (fig, obj)): New version of function that uses QCursor::pos() to get CurrentPoint rather than using data embedded in QMouseEvent. * QtHandlesUtils.h (figureCurrentPoint (fig)): New prototype for 1-argument form of figureCurrentPoint used with QKeyEvents. * QtHandlesUtils.cc (figureCurrentPoint (fig)): New version of function that uses QCursor::pos() to get CurrentPoint rather than using data embedded in QMouseEvent.
author Rik <rik@octave.org>
date Mon, 20 Apr 2015 20:46:54 -0700
parents f1f6d5eab46f
children 062422f2e399
line wrap: on
line diff
--- a/libgui/graphics/Canvas.h	Tue Apr 21 00:24:35 2015 +0200
+++ b/libgui/graphics/Canvas.h	Mon Apr 20 20:46:54 2015 -0700
@@ -102,6 +102,8 @@
 
   void updateCurrentPoint (const graphics_object& fig,
                            const graphics_object& obj, QMouseEvent *event);
+  void updateCurrentPoint (const graphics_object& fig,
+                           const graphics_object& obj);
 
   void annotation_callback (const octave_value_list& args);