Commit fac13f11 authored by Patrick José Pereira's avatar Patrick José Pereira

AppSettings: Do not use deprecated QString enum with Qt 5.15.0

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 35a21fdd
...@@ -241,7 +241,13 @@ MAV_TYPE AppSettings::offlineEditingVehicleTypeFromVehicleType(MAV_TYPE vehicleT ...@@ -241,7 +241,13 @@ MAV_TYPE AppSettings::offlineEditingVehicleTypeFromVehicleType(MAV_TYPE vehicleT
QList<int> AppSettings::firstRunPromptsIdsVariantToList(const QVariant& firstRunPromptIds) QList<int> AppSettings::firstRunPromptsIdsVariantToList(const QVariant& firstRunPromptIds)
{ {
QList<int> rgIds; QList<int> rgIds;
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList strIdList = firstRunPromptIds.toString().split(",", QString::SkipEmptyParts); QStringList strIdList = firstRunPromptIds.toString().split(",", QString::SkipEmptyParts);
#else
QStringList strIdList = firstRunPromptIds.toString().split(",", Qt::SkipEmptyParts);
#endif
for (const QString& strId: strIdList) { for (const QString& strId: strIdList) {
rgIds.append(strId.toInt()); rgIds.append(strId.toInt());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment