UserControl now automatically refreshes itself when its enabled state changes.

[GB.QT4]
* BUG: UserControl now automatically refreshes itself when its enabled state changes.

[GB.QT5]
* BUG: UserControl now automatically refreshes itself when its enabled state changes.
This commit is contained in:
Benoît Minisini 2022-12-15 02:32:32 +01:00
parent d8ff5eb39d
commit 94af499b8d

View file

@ -906,7 +906,13 @@ void MyContainer::changeEvent(QEvent *e)
}
if (e->type() == QEvent::FontChange)
{
CALL_FUNCTION(THIS_USERCONTROL, font_func);
}
else if (e->type() == QEvent::EnabledChange)
{
update();
}
}