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

@@ -89,8 +89,6 @@ public:
static FilePaths usefulExtraSearchPaths();
#ifdef QT_WIDGETS_LIB
static void setDialogParentGetter(const std::function<QWidget *()> &getter);
static bool hasNativeFileDialog();
static FilePath getOpenFilePath(QWidget *parent,
@@ -236,7 +234,5 @@ private:
QTCREATOR_UTILS_EXPORT QTextStream &operator<<(QTextStream &s, const FilePath &fn);
bool isRelativePathHelper(const QString &path, OsType osType);
} // namespace Utils