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,
|
TextEditorSettings::registerMimeTypeForLanguageId(Nim::Constants::C_NIM_SCRIPT_MIMETYPE,
|
||||||
Nim::Constants::C_NIMLANGUAGE_ID);
|
Nim::Constants::C_NIMLANGUAGE_ID);
|
||||||
|
|
||||||
registerAspect(&nimSuggestPath);
|
|
||||||
nimSuggestPath.setSettingsKey("Command");
|
nimSuggestPath.setSettingsKey("Command");
|
||||||
nimSuggestPath.setDisplayStyle(StringAspect::PathChooserDisplay);
|
|
||||||
nimSuggestPath.setExpectedKind(PathChooser::ExistingCommand);
|
nimSuggestPath.setExpectedKind(PathChooser::ExistingCommand);
|
||||||
nimSuggestPath.setLabelText(Tr::tr("Path:"));
|
nimSuggestPath.setLabelText(Tr::tr("Path:"));
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public:
|
|||||||
NimSettings();
|
NimSettings();
|
||||||
~NimSettings();
|
~NimSettings();
|
||||||
|
|
||||||
Utils::StringAspect nimSuggestPath;
|
Utils::FilePathAspect nimSuggestPath{this};
|
||||||
|
|
||||||
static TextEditor::SimpleCodeStylePreferences *globalCodeStyle();
|
static TextEditor::SimpleCodeStylePreferences *globalCodeStyle();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user