forked from qt-creator/qt-creator
Utils/ProjectExplorer: Use FilePath for Runnable::workingDirectory
... and in some using code. Change-Id: I231ea56628908f7d305d13f07eabe8803fe8a791 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -124,14 +124,14 @@ void FileUtils::showInGraphicalShell(QWidget *parent, const QString &pathIn)
|
||||
}
|
||||
}
|
||||
|
||||
void FileUtils::openTerminal(const QString &path)
|
||||
void FileUtils::openTerminal(const FilePath &path)
|
||||
{
|
||||
openTerminal(path, Environment::systemEnvironment());
|
||||
}
|
||||
|
||||
void FileUtils::openTerminal(const QString &path, const Environment &env)
|
||||
void FileUtils::openTerminal(const FilePath &path, const Environment &env)
|
||||
{
|
||||
const QFileInfo fileInfo(path);
|
||||
const QFileInfo fileInfo = path.toFileInfo();
|
||||
const QString pwd = QDir::toNativeSeparators(fileInfo.isDir() ?
|
||||
fileInfo.absoluteFilePath() :
|
||||
fileInfo.absolutePath());
|
||||
|
||||
Reference in New Issue
Block a user