Perforce: Use a FilePathAspect for the p4 binary

Change-Id: I9bdb04192887f72d37bee04d13450cb9f85f9bc2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2023-06-28 16:40:03 +02:00
parent 3cfa1902c6
commit a998456338
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ PerforceSettings::PerforceSettings()
setSettingsGroup("Perforce"); setSettingsGroup("Perforce");
setAutoApply(false); setAutoApply(false);
p4BinaryPath.setDisplayStyle(StringAspect::PathChooserDisplay);
p4BinaryPath.setSettingsKey("Command"); p4BinaryPath.setSettingsKey("Command");
p4BinaryPath.setDefaultValue( p4BinaryPath.setDefaultValue(
Environment::systemEnvironment().searchInPath(defaultCommand()).toString()); Environment::systemEnvironment().searchInPath(defaultCommand()).toString());

View File

@@ -68,7 +68,7 @@ public:
void clearTopLevel(); void clearTopLevel();
Utils::StringAspect p4BinaryPath{this}; Utils::FilePathAspect p4BinaryPath{this};
Utils::StringAspect p4Port{this}; Utils::StringAspect p4Port{this};
Utils::StringAspect p4Client{this}; Utils::StringAspect p4Client{this};
Utils::StringAspect p4User{this}; Utils::StringAspect p4User{this};