Generate wxWindowCreateEvent when creating windows in wxQt

Send the expected event at the very end of window creation process.

Closes https://github.com/wxWidgets/wxWidgets/pull/1119
This commit is contained in:
Graham Dawes
2019-01-07 11:26:17 +00:00
committed by Vadim Zeitlin
parent 61b2136bee
commit 34ecc6efc4
4 changed files with 17 additions and 6 deletions

View File

@@ -58,9 +58,12 @@ bool wxControl::QtCreateControl( wxWindow *parent, wxWindowID id,
// Let Qt handle the background:
SetBackgroundStyle(wxBG_STYLE_SYSTEM);
PostCreation(false);
return CreateControl( parent, id, pos, size, style, validator, name );
if (!CreateControl( parent, id, pos, size, style, validator, name ))
return false;
PostCreation(false);
return true;
}
wxSize wxControl::DoGetBestSize() const