Centre wxMessageDialog in wxQt too

Do this for consistency with the other ports.

Closes https://github.com/wxWidgets/wxWidgets/pull/1347
This commit is contained in:
Jay Nabonne
2019-06-11 10:40:43 +01:00
committed by Vadim Zeitlin
parent 8b489f53d6
commit 655205af77

View File

@@ -110,6 +110,8 @@ wxMessageDialog::wxMessageDialog( wxWindow *parent, const wxString& message,
dlg->setWindowModality( Qt::ApplicationModal );
PostCreation();
Centre(wxBOTH | wxCENTER_FRAME);
}
wxIMPLEMENT_CLASS(wxMessageDialog,wxDialog);