Haskell: Finish moving to FilePathAspect use

Change-Id: Icd76794b5f81990a583aa1b7ed921fbd08b2d797
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-05-25 12:10:14 +02:00
parent c3fb4e1c51
commit 53aeaa1ca4
2 changed files with 1 additions and 3 deletions

View File

@@ -30,9 +30,7 @@ HaskellSettings::HaskellSettings()
setDisplayCategory(Tr::tr("Haskell"));
setCategoryIconPath(":/haskell/images/settingscategory_haskell.png");
registerAspect(&stackPath);
stackPath.setSettingsKey("Haskell/StackExecutable");
stackPath.setDisplayStyle(StringAspect::PathChooserDisplay);
stackPath.setExpectedKind(PathChooser::ExistingCommand);
stackPath.setPromptDialogTitle(Tr::tr("Choose Stack Executable"));
stackPath.setCommandVersionArguments({"--version"});

View File

@@ -12,7 +12,7 @@ class HaskellSettings : public Core::PagedSettings
public:
HaskellSettings();
Utils::FilePathAspect stackPath;
Utils::FilePathAspect stackPath{this};
};
HaskellSettings &settings();