forked from qt-creator/qt-creator
Meson: Remove some explicit use of QFileInfo
Change-Id: I5fa65b29516f80afdc2b00934ed39e63ae5a3a24 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -12,10 +12,6 @@
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QTemporaryFile>
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace MesonProjectManager::Internal {
|
||||
@@ -78,7 +74,7 @@ void ToolWrapper::setExe(const FilePath &newExe)
|
||||
|
||||
QVersionNumber ToolWrapper::read_version(const FilePath &toolPath)
|
||||
{
|
||||
if (toolPath.toFileInfo().isExecutable()) {
|
||||
if (toolPath.isExecutableFile()) {
|
||||
Process process;
|
||||
process.setCommand({ toolPath, { "--version" } });
|
||||
process.start();
|
||||
|
||||
Reference in New Issue
Block a user