[KMessageWidget] Fix wrong size hint when animatedShow() is called with a hidden parentWidget()
ClosedPublic

Authored by cfeck on Mar 18 2017, 1:28 AM.

Details

Summary

If the parent widget is not visible, then immediately show() the message widget to compute proper size hint. Otherwise, when the widget is later implicitely shown when parent gets visible, we are too late.

Fixes https://bugs.kde.org/show_bug.cgi?id=377676

Diff Detail

Repository
R236 KWidgetsAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
cfeck created this revision.Mar 18 2017, 1:28 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 18 2017, 1:28 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
elvisangelaccio accepted this revision.Mar 19 2017, 10:32 AM

I cannot reproduce that bug but the patch looks good to me.

This revision is now accepted and ready to land.Mar 19 2017, 10:32 AM
This revision was automatically updated to reflect the committed changes.