Utils: Store Device::osType in settings

Change-Id: I41348be752598b7a8d1f1979764e7111cccc95a9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-03-15 09:30:14 +01:00
parent af809b3a52
commit 29873068eb
13 changed files with 95 additions and 62 deletions

View File

@@ -1566,7 +1566,11 @@ bool FilePath::setPermissions(QFile::Permissions permissions) const
OsType FilePath::osType() const
{
return fileAccess()->osType(*this);
if (!needsDevice())
return HostOsInfo::hostOs();
QTC_ASSERT(s_deviceHooks.osType, return HostOsInfo::hostOs());
return s_deviceHooks.osType(*this);
}
bool FilePath::removeFile() const