FilePath: Avoid QStringView::first, which is only available in Qt 6

but FilePath is still used with sdktool = qt 5.15.2

Change-Id: Ibb196411fc37efc74db6df4ab024ac98db6cf4ea
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Eike Ziller
2022-11-18 13:45:02 +01:00
parent 661bec83d4
commit 5c37cfc54b

View File

@@ -342,7 +342,7 @@ QStringView FilePath::host() const
QStringView FilePath::pathView() const
{
return QStringView(m_data).first(m_pathLen);
return QStringView(m_data).left(m_pathLen);
}
QString FilePath::path() const