From 2b23a359d4de4a7572a3af089c928b56b67a35d0 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 16 May 2024 16:58:25 +0200 Subject: [PATCH] Doc: Describe using Perforce config files on Linux Fixes: QTCREATORBUG-30816 Change-Id: I52adaa3a5f216a503c7e22c8e4905146ee778f3b Reviewed-by: Eike Ziller Reviewed-by: Friedemann Kleint Reviewed-by: --- .../creator-only/creator-vcs-perforce.qdoc | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/doc/qtcreator/src/vcs/creator-only/creator-vcs-perforce.qdoc b/doc/qtcreator/src/vcs/creator-only/creator-vcs-perforce.qdoc index 443aa40be45..3af3c6769b4 100644 --- a/doc/qtcreator/src/vcs/creator-only/creator-vcs-perforce.qdoc +++ b/doc/qtcreator/src/vcs/creator-only/creator-vcs-perforce.qdoc @@ -35,11 +35,29 @@ Set workspace details in \uicontrol {P4 user}, \uicontrol {P4 client}, and \uicontrol {P4 port}. + \section1 Using Configuration Files + To specify the details individually for several projects, use configuration - files instead. Create a \c {p4config.txt} configuration file for each - project in the top level project directory, and run - \c{p4 set P4CONFIG=p4config.txt} once. You must deselect the - \uicontrol {Environment Variables} check box. + files: + + \list 1 + \li Create a \c {p4config.txt} configuration file for each project in the + top level project directory. + \li Go to \preferences > \uicontrol {Version Control} > + \uicontrol Perforce. + \li Clear \uicontrol {Environment Variables}. + \li Run the following command from the command line once: + \list + \li On Windows: + \badcode + p4 set P4CONFIG=p4config.txt + \endcode + \li On Linux + \badcode + export P4CONFIG= + \endcode + \endlist + \endlist \section1 Editing Files