aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-03-16 14:40:20 +0100
committerEike Ziller <eike.ziller@qt.io>2021-03-16 14:35:27 +0000
commitbea9b5e969b6d30b79d9608d68dd9c95dffc593e (patch)
tree50d948fec7c4cbdd5c79d954873743904ca8d771 /plugins
parent93c6695c1948f68da9f3a2388da2653ae72e13b5 (diff)
Adapt to upstream changes
PathChooser::setFileName was removed/replaced by setFilePath Change-Id: I3fbf675c9c15248629bab5ebeb3311dd62526b03 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/haskell/haskellbuildconfiguration.cpp4
-rw-r--r--plugins/haskell/optionspage.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/haskell/haskellbuildconfiguration.cpp b/plugins/haskell/haskellbuildconfiguration.cpp
index af7e147..160e2d1 100644
--- a/plugins/haskell/haskellbuildconfiguration.cpp
+++ b/plugins/haskell/haskellbuildconfiguration.cpp
@@ -112,14 +112,14 @@ HaskellBuildConfigurationWidget::HaskellBuildConfigurationWidget(HaskellBuildCon
auto buildDirectoryInput = new Utils::PathChooser;
buildDirectoryInput->setExpectedKind(Utils::PathChooser::Directory);
- buildDirectoryInput->setFileName(m_buildConfiguration->buildDirectory());
+ buildDirectoryInput->setFilePath(m_buildConfiguration->buildDirectory());
details->layout()->addWidget(buildDirectoryInput);
connect(m_buildConfiguration,
&BuildConfiguration::buildDirectoryChanged,
buildDirectoryInput,
[this, buildDirectoryInput] {
- buildDirectoryInput->setFileName(m_buildConfiguration->buildDirectory());
+ buildDirectoryInput->setFilePath(m_buildConfiguration->buildDirectory());
});
connect(buildDirectoryInput,
&Utils::PathChooser::pathChanged,
diff --git a/plugins/haskell/optionspage.cpp b/plugins/haskell/optionspage.cpp
index cba0517..63d1594 100644
--- a/plugins/haskell/optionspage.cpp
+++ b/plugins/haskell/optionspage.cpp
@@ -62,7 +62,7 @@ QWidget *OptionsPage::widget()
m_stackPath = new PathChooser();
m_stackPath->setExpectedKind(PathChooser::ExistingCommand);
m_stackPath->setPromptDialogTitle(tr("Choose Stack Executable"));
- m_stackPath->setFileName(HaskellManager::stackExecutable());
+ m_stackPath->setFilePath(HaskellManager::stackExecutable());
m_stackPath->setCommandVersionArguments({"--version"});
boxLayout->addWidget(m_stackPath);
}