forked from qt-creator/qt-creator
Nim: Use a FilePathAspect for nimsuggest settings
Change-Id: I7e910853dcf6872f2a9a38ebfc5e52936ef15113 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -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:"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user