Add function to close top level windows to MiniQtHelper

This commit is contained in:
baldurk
2021-01-27 16:03:26 +00:00
parent dabd2a803a
commit 4d16c3e44c
4 changed files with 21 additions and 0 deletions
+4
View File
@@ -99,6 +99,10 @@ struct MiniQtInvoker : ObjectForwarder<IMiniQtHelper>
{
return InvokeRetFunction<QWidget *>(&IMiniQtHelper::CreateToplevelWidget, windowTitle, closed);
}
void CloseToplevelWidget(QWidget *widget)
{
InvokeVoidFunction(&IMiniQtHelper::CloseToplevelWidget, widget);
}
// widget hierarchy