Mercurial > octave
diff libgui/graphics/BaseControl.cc @ 26816:92ecc4a97b5c
Properly redraw uixx objects after Qt figure is (un)maximized (bug #53709)
* BaseControl.[f,cc] (BaseControl::BaseControl): Set QObject name for further
triage.
(BaseControl::redraw): New method that forces an update of the position
* Panel.cc (Panel::redraw): Force an update of the position.
* ButtonGroup.cc (ButtonGroup::redraw): Ditto.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 28 Feb 2019 23:06:25 +0100 |
parents | 00f796120a6d |
children | 6b2d20317b26 |
line wrap: on
line diff
--- a/libgui/graphics/BaseControl.cc Sat Mar 02 11:08:53 2019 -0800 +++ b/libgui/graphics/BaseControl.cc Thu Feb 28 23:06:25 2019 +0100 @@ -93,6 +93,7 @@ BaseControl::BaseControl (const graphics_object& go, QWidget *w) : Object (go, w), m_normalizedFont (false), m_keyPressHandlerDefined (false) { + qObject ()->setObjectName ("UIControl"); init (w); } @@ -123,6 +124,12 @@ { } void + BaseControl::redraw (void) + { + update (uicontrol::properties::ID_POSITION); + } + + void BaseControl::update (int pId) { uicontrol::properties& up = properties<uicontrol> ();