[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44672] Differences with figure/uicontrol betw

From: Rik
Subject: [Octave-bug-tracker] [bug #44672] Differences with figure/uicontrol between Octave and MATLAB
Date: Tue, 14 Aug 2018 19:58:32 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #4, bug #44672 (project octave):

Good news / bad news.  The good news is that I can see why gco is not being
updated when a pushbutton is pressed.  The bad news is that I'm not a GUI or
Qt expert and I don't know the best way to fix it.

The normal code to handle a MousePressEvent is found in
libgui/graphics/Canvas.cc.  See

  Canvas::canvasMousePressEvent (QMouseEvent *event)

However, when a pushbutton is activated the Canvas object apparently never
sees the event.  Instead, the code in ButtonControl.cc is executed

  ButtonControl::clicked (void)

That is the root of the problem.  Either the event needs to also be dispatched
to Canvas, or ButtonControl needs to borrow code from Canvas.cc to change the
CurrentObject property of the figure containing the button.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]