Mercurial > hg > octave-nkf
changeset 20209:0376c1225660
Fix ginput to return button number with Qt toolkit (bug #44676).
* Canvas.cc (canvasMousePressEvent): Supply "button_number (event)" as first
argument when running post_callback() for "windowbuttondownfcn".
author | Rik <rik@octave.org> |
---|---|
date | Tue, 31 Mar 2015 11:31:32 -0700 |
parents | 91e2212b060d |
children | e251b75fab55 |
files | libgui/graphics/Canvas.cc |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/Canvas.cc +++ b/libgui/graphics/Canvas.cc @@ -593,10 +593,12 @@ updateCurrentPoint (figObj, obj, event); gh_manager::post_callback (figObj.get_handle (), - "windowbuttondownfcn"); + "windowbuttondownfcn", + button_number (event)); gh_manager::post_callback (currentObj.get_handle (), - "buttondownfcn", button_number (event)); + "buttondownfcn", + button_number (event)); if (event->button () == Qt::RightButton) ContextMenu::executeAt (currentObj.get_properties (),