aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/squish/squishnavigationwidget.cpp
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/squish/squishnavigationwidget.cpp
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/squish/squishnavigationwidget.cpp')
-rw-r--r--src/plugins/squish/squishnavigationwidget.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/squish/squishnavigationwidget.cpp b/src/plugins/squish/squishnavigationwidget.cpp
index d3fb523196e..46f81aae31c 100644
--- a/src/plugins/squish/squishnavigationwidget.cpp
+++ b/src/plugins/squish/squishnavigationwidget.cpp
@@ -15,7 +15,6 @@
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/itemviewfind.h>
-#include <coreplugin/icore.h>
#include <coreplugin/inavigationwidgetfactory.h>
#include <utils/algorithm.h>
@@ -337,8 +336,7 @@ void SquishNavigationWidget::onRemoveSharedFileTriggered(const QModelIndex &idx)
const QString detail = Tr::tr("Do you really want to delete \"%1\" permanently?")
.arg(scriptFile.toUserOutput());
const QMessageBox::StandardButton pressed
- = CheckableMessageBox::question(Core::ICore::dialogParent(),
- Tr::tr("Remove Shared File"),
+ = CheckableMessageBox::question(Tr::tr("Remove Shared File"),
detail,
Key("RemoveSharedSquishScript"),
QMessageBox::Yes | QMessageBox::No,
@@ -388,7 +386,6 @@ void SquishNavigationWidget::onRemoveAllSharedFolderTriggered()
void SquishNavigationWidget::onRecordTestCase(const QString &suiteName, const QString &testCase)
{
QMessageBox::StandardButton pressed = CheckableMessageBox::question(
- Core::ICore::dialogParent(),
Tr::tr("Record Test Case"),
Tr::tr("Do you want to record over the test case \"%1\"? The existing content will "
"be overwritten by the recorded script.")