Qt GUI: work around apparent qt 5.1x issue where the display is not properly updated when switching to table mode
This commit is contained in:
parent
4f66e7688d
commit
70723a5280
@ -962,8 +962,15 @@ void RclMain::on_actionShowResultsAsTable_toggled(bool on)
|
||||
prevPageAction->setEnabled(false);
|
||||
firstPageAction->setEnabled(false);
|
||||
if (m_focustotablesc)
|
||||
connect(m_focustotablesc, SIGNAL(activated()),
|
||||
restable, SLOT(takeFocus()));
|
||||
connect(m_focustotablesc, SIGNAL(activated()), restable, SLOT(takeFocus()));
|
||||
|
||||
// This should not be necessary, but it fixes a display issue with qt 5.12/5.15
|
||||
// (focal/jammy) at least, where the restable area is not fully painted (but gets updated if
|
||||
// you move the pointer around or resize / move the window, depending). The problem is
|
||||
// slightly random or timing-dependant (not occurring every time). The hide/show does not
|
||||
// seem to hurt performance visibly.
|
||||
restable->hide();
|
||||
restable->show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user