Diffusion Krita 30c3fce21cec

Don't call this->show() in a constructor

Authored by Mathias Wein <lynx.mw@gmail.com> on Aug 25 2019, 4:57 PM.

Description

Don't call this->show() in a constructor

QWidget::show() triggers a resizeEvent() which is a virtual function
call, which is a really bad idea...
Instead, make the function that created (possibly) hidden widgets
to show() them.
Also, the update() on the children in a resize event was redundant.

Details

Committed
remptSep 10 2019, 8:27 AM
Parents
R37:3d8be7bad1e9: Don't set a minimum height in color selector dialog UI file.
Branches
Unknown
Tags
Unknown
rempt committed R37:30c3fce21cec: Don't call this->show() in a constructor (authored by Mathias Wein <lynx.mw@gmail.com>).Sep 10 2019, 8:27 AM