7 QSettings deprecatedSettings;
10 newSettings.beginGroup(_settingsGroup);
12 static const char* deprecatedGCSHeartbeatEnabledKey =
"gcsHeartbeatEnabled";
13 if (!newSettings.contains(sendGCSHeartbeatName) && deprecatedSettings.contains(deprecatedGCSHeartbeatEnabledKey)) {
14 newSettings.setValue(sendGCSHeartbeatName, deprecatedSettings.value(deprecatedGCSHeartbeatEnabledKey));
15 deprecatedSettings.remove(deprecatedGCSHeartbeatEnabledKey);
18 static const char* deprecatedNoInitialDownloadWhenFlyingKey =
"noInitialDownloadWhenFlying";
19 if (!newSettings.contains(noInitialDownloadWhenArmedName) &&
20 newSettings.contains(deprecatedNoInitialDownloadWhenFlyingKey)) {
21 newSettings.setValue(noInitialDownloadWhenArmedName,
22 newSettings.value(deprecatedNoInitialDownloadWhenFlyingKey));
23 newSettings.remove(deprecatedNoInitialDownloadWhenFlyingKey);
26 static const char* deprecatedMavlinkGroup =
"QGC_MAVLINK_PROTOCOL";
27 static const char* deprecatedMavlinkSystemIdKey =
"GCS_SYSTEM_ID";
28 deprecatedSettings.beginGroup(deprecatedMavlinkGroup);
29 if (!newSettings.contains(gcsMavlinkSystemIDName) && deprecatedSettings.contains(deprecatedMavlinkSystemIdKey)) {
30 newSettings.setValue(gcsMavlinkSystemIDName, deprecatedSettings.value(deprecatedMavlinkSystemIdKey));
31 deprecatedSettings.remove(deprecatedMavlinkSystemIdKey);
34 newSettings.endGroup();
35 deprecatedSettings.endGroup();