aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help
diff options
context:
space:
mode:
authorhjk <[email protected]>2024-12-11 11:46:34 +0100
committerhjk <[email protected]>2025-01-06 09:20:58 +0000
commitbcdf7d71b6e23c17f3a9963264c6025b8747fa93 (patch)
tree9e9d958e742cfeb7a5326e57bbfed85a116c4beb /src/plugins/help
parent0c5c42a6d68a3a77b5761204298926a18407cc26 (diff)
Utils: Remove parent argument from FileUtils dialogs
Some were using ICore::dialogParent() directly and the 'nullptr' users were using that implicitly, but quite a few actually effectively changed now from some local widget to (implicit) ICore::dialogParent(). Change-Id: Ibb2767b1289221dd26757361235ee88df4a1695e Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/help')
-rw-r--r--src/plugins/help/docsettingspage.cpp3
-rw-r--r--src/plugins/help/generalsettingspage.cpp6
2 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/help/docsettingspage.cpp b/src/plugins/help/docsettingspage.cpp
index 8663e6e93cd..e06815ed930 100644
--- a/src/plugins/help/docsettingspage.cpp
+++ b/src/plugins/help/docsettingspage.cpp
@@ -213,8 +213,7 @@ DocSettingsPageWidget::DocSettingsPageWidget()
void DocSettingsPageWidget::addDocumentation()
{
- const FilePaths files = FileUtils::getOpenFilePaths(Core::ICore::dialogParent(),
- Tr::tr("Add Documentation"),
+ const FilePaths files = FileUtils::getOpenFilePaths(Tr::tr("Add Documentation"),
m_recentDialogPath,
Tr::tr("Qt Help Files (*.qch)"));
diff --git a/src/plugins/help/generalsettingspage.cpp b/src/plugins/help/generalsettingspage.cpp
index 384752d4c19..ae0a0eed3a8 100644
--- a/src/plugins/help/generalsettingspage.cpp
+++ b/src/plugins/help/generalsettingspage.cpp
@@ -351,8 +351,7 @@ void GeneralSettingsPageWidget::importBookmarks()
{
errorLabel->setVisible(false);
- FilePath filePath = FileUtils::getOpenFilePath(nullptr,
- Tr::tr("Import Bookmarks"),
+ FilePath filePath = FileUtils::getOpenFilePath(Tr::tr("Import Bookmarks"),
FilePath::fromString(QDir::currentPath()),
Tr::tr("Files (*.xbel)"));
@@ -375,8 +374,7 @@ void GeneralSettingsPageWidget::exportBookmarks()
{
errorLabel->setVisible(false);
- FilePath filePath = FileUtils::getSaveFilePath(nullptr,
- Tr::tr("Save File"),
+ FilePath filePath = FileUtils::getSaveFilePath(Tr::tr("Save File"),
"untitled.xbel",
Tr::tr("Files (*.xbel)"));