mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
[partition] Fix build for old Qt
This commit is contained in:
parent
a9a287fa59
commit
a0cb4b63a8
1 changed files with 5 additions and 0 deletions
|
@ -194,7 +194,12 @@ getPVGroups( const QString& deviceName )
|
|||
|
||||
vgSet.insert( vgName );
|
||||
}
|
||||
// toList() was deprecated, but old-old versions don't support QStringList construction like this
|
||||
#if QT_VERSION < QT_VERSION_CHECK( 5, 15, 0 )
|
||||
return vgSet.toList();
|
||||
#else
|
||||
return QStringList { vgSet.cbegin(), vgSet.cend() };
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue