Diffusion Krita 1132b6db5901

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
Mathias Wein <lynx.mw@gmail.com>Sep 5 2019, 7:28 PM
Parents
R37:b66c7e32da82: Don't set a minimum height in color selector dialog UI file.
Branches
Unknown
Tags
Unknown
Mathias Wein <lynx.mw@gmail.com> committed R37:1132b6db5901: Don't call this->show() in a constructor (authored by Mathias Wein <lynx.mw@gmail.com>).Sep 5 2019, 7:28 PM