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:
parent
d8ff5eb39d
commit
94af499b8d
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue