Utils: Make injected default dialog parent better re-usable

... and use it for CheckableMessageBox. This enables using
the proper parent e.g. in upcoming changes to ExtensionSystem.

Change-Id: Ib0e52cbd3e73dc628955918e3f443ff65cccb189
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-05-23 15:25:33 +02:00
parent a87ed65dbb
commit 1e9c11c3b3
6 changed files with 23 additions and 22 deletions

View File

@@ -54,9 +54,9 @@
#include <utils/checkablemessagebox.h>
#include <utils/dropsupport.h>
#include <utils/environment.h>
#include <utils/fileutils.h>
#include <utils/fsengine/fileiconprovider.h>
#include <utils/fsengine/fsengine.h>
#include <utils/guiutils.h>
#include <utils/historycompleter.h>
#include <utils/hostosinfo.h>
#include <utils/mimeutils.h>
@@ -397,7 +397,7 @@ ICore::ICore()
QCoreApplication::exit(exitCode);
});
Utils::FileUtils::setDialogParentGetter(&ICore::dialogParent);
Utils::setDialogParentGetter(&ICore::dialogParent);
d->m_progressManager->init(); // needs the status bar manager
MessageManager::init();