forked from qt-creator/qt-creator
Get rid of QtcProcess::workingDirectory() overload
Adapt all callers' code so that it passes the FilePath instead of QString. As a consequence introduce TemporaryDirectory::masterDirectoryFilePath() and use it where easily possible. Change-Id: I14564949b3b916921e32a2957c84c03d1da43af2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -300,13 +300,13 @@ public:
|
||||
const QByteArray &stdInput = {},
|
||||
QTextCodec *outputCodec = nullptr) const;
|
||||
|
||||
PerforceResponse synchronousProcess(const QString &workingDir,
|
||||
PerforceResponse synchronousProcess(const FilePath &workingDir,
|
||||
const QStringList &args,
|
||||
unsigned flags,
|
||||
const QByteArray &stdInput,
|
||||
QTextCodec *outputCodec) const;
|
||||
|
||||
PerforceResponse fullySynchronousProcess(const QString &workingDir,
|
||||
PerforceResponse fullySynchronousProcess(const FilePath &workingDir,
|
||||
const QStringList &args,
|
||||
unsigned flags,
|
||||
const QByteArray &stdInput,
|
||||
@@ -1238,7 +1238,7 @@ static inline QString msgExitCode(int ex)
|
||||
}
|
||||
|
||||
// Run using a SynchronousProcess, emitting signals to the message window
|
||||
PerforceResponse PerforcePluginPrivate::synchronousProcess(const QString &workingDir,
|
||||
PerforceResponse PerforcePluginPrivate::synchronousProcess(const FilePath &workingDir,
|
||||
const QStringList &args,
|
||||
unsigned flags,
|
||||
const QByteArray &stdInput,
|
||||
@@ -1300,7 +1300,7 @@ PerforceResponse PerforcePluginPrivate::synchronousProcess(const QString &workin
|
||||
}
|
||||
|
||||
// Run using a QProcess, for short queries
|
||||
PerforceResponse PerforcePluginPrivate::fullySynchronousProcess(const QString &workingDir,
|
||||
PerforceResponse PerforcePluginPrivate::fullySynchronousProcess(const FilePath &workingDir,
|
||||
const QStringList &args,
|
||||
unsigned flags,
|
||||
const QByteArray &stdInput,
|
||||
@@ -1388,8 +1388,8 @@ PerforceResponse PerforcePluginPrivate::runP4Cmd(const FilePath &workingDir,
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
|
||||
const PerforceResponse response = (flags & RunFullySynchronous) ?
|
||||
fullySynchronousProcess(workingDir.toString(), actualArgs, flags, stdInput, outputCodec) :
|
||||
synchronousProcess(workingDir.toString(), actualArgs, flags, stdInput, outputCodec);
|
||||
fullySynchronousProcess(workingDir, actualArgs, flags, stdInput, outputCodec) :
|
||||
synchronousProcess(workingDir, actualArgs, flags, stdInput, outputCodec);
|
||||
|
||||
if (flags & ShowBusyCursor)
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
Reference in New Issue
Block a user