Mercurial > octave
diff libgui/graphics/Table.cc @ 26820:0a383bddfb40
Also update uitbale position when figure is (un)maximized (bug #53709)
* Table.[h,cc] (Table::Table): Set qobject name for further triage.
(Table::redraw): Reimplement Object::redraw to update the uitable position.
* Figure.cc (Figure::redraw): Call slotRedraw on uitable widgets aswell.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 03 Mar 2019 18:19:12 +0100 |
parents | 83857449f3da |
children | 7455523fdf01 |
line wrap: on
line diff
--- a/libgui/graphics/Table.cc Sun Mar 03 17:15:37 2019 +0100 +++ b/libgui/graphics/Table.cc Sun Mar 03 18:19:12 2019 +0100 @@ -442,6 +442,7 @@ : Object (go, tableWidget), m_tableWidget (tableWidget), m_curData (), m_blockUpdates (false) { + qObject ()->setObjectName ("UItable"); uitable::properties& tp = properties<uitable> (); m_curData = octave_value (tp.get_data ()); @@ -863,6 +864,12 @@ } void + Table::redraw (void) + { + update (uitable::properties::ID_POSITION); + } + + void Table::update (int pId) { uitable::properties& tp = properties<uitable> ();