forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -442,14 +442,14 @@ void IosDebugSupport::start()
|
||||
setStartMode(AttachToRemoteProcess);
|
||||
setIosPlatform("remote-ios");
|
||||
QString osVersion = dev->osVersion();
|
||||
FileName deviceSdk1 = FileName::fromString(QDir::homePath()
|
||||
FilePath deviceSdk1 = FilePath::fromString(QDir::homePath()
|
||||
+ "/Library/Developer/Xcode/iOS DeviceSupport/"
|
||||
+ osVersion + "/Symbols");
|
||||
QString deviceSdk;
|
||||
if (deviceSdk1.toFileInfo().isDir()) {
|
||||
deviceSdk = deviceSdk1.toString();
|
||||
} else {
|
||||
const FileName deviceSdk2 = IosConfigurations::developerPath()
|
||||
const FilePath deviceSdk2 = IosConfigurations::developerPath()
|
||||
.pathAppended("Platforms/iPhoneOS.platform/DeviceSupport/"
|
||||
+ osVersion + "/Symbols");
|
||||
if (deviceSdk2.toFileInfo().isDir()) {
|
||||
@@ -485,7 +485,7 @@ void IosDebugSupport::start()
|
||||
|
||||
QString bundlePath = iosRunConfig->bundleDirectory().toString();
|
||||
bundlePath.chop(4);
|
||||
FileName dsymPath = FileName::fromString(bundlePath.append(".dSYM"));
|
||||
FilePath dsymPath = FilePath::fromString(bundlePath.append(".dSYM"));
|
||||
if (dsymPath.exists() && dsymPath.toFileInfo().lastModified()
|
||||
< QFileInfo(iosRunConfig->localExecutable().toUserOutput()).lastModified()) {
|
||||
TaskHub::addTask(Task::Warning,
|
||||
|
||||
Reference in New Issue
Block a user