Nim: Use a FilePathAspect for nimsuggest settings

Change-Id: I7e910853dcf6872f2a9a38ebfc5e52936ef15113
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-05-23 15:25:32 +02:00
parent 3c9bb1c53d
commit 443117e314
2 changed files with 1 additions and 3 deletions

View File

@@ -86,9 +86,7 @@ NimSettings::NimSettings()
TextEditorSettings::registerMimeTypeForLanguageId(Nim::Constants::C_NIM_SCRIPT_MIMETYPE,
Nim::Constants::C_NIMLANGUAGE_ID);
registerAspect(&nimSuggestPath);
nimSuggestPath.setSettingsKey("Command");
nimSuggestPath.setDisplayStyle(StringAspect::PathChooserDisplay);
nimSuggestPath.setExpectedKind(PathChooser::ExistingCommand);
nimSuggestPath.setLabelText(Tr::tr("Path:"));