From 349e885af09eb14696b9492f9361dd10ca02595f Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 6 May 2017 09:19:32 -0700 Subject: [PATCH] Mention voiding warranty in show advanced ui confirmation --- src/api/QGCCorePlugin.cc | 8 ++++++++ src/api/QGCCorePlugin.h | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/api/QGCCorePlugin.cc b/src/api/QGCCorePlugin.cc index 4cbde57a05..b6b8d16ee3 100644 --- a/src/api/QGCCorePlugin.cc +++ b/src/api/QGCCorePlugin.cc @@ -190,3 +190,11 @@ void QGCCorePlugin::paletteOverride(QString colorName, QGCPalette::PaletteColorI Q_UNUSED(colorName); Q_UNUSED(colorInfo); } + +QString QGCCorePlugin::showAdvancedUIMessage(void) const +{ + return tr("WARNING: You are about to enter Advanced Mode. " + "If used incorrectly, this may cause your vehicle to malfunction thus voiding your warranty. " + "You should do so only if instructed by customer support. " + "Are you sure you want to enable Advanced Mode?"); +} diff --git a/src/api/QGCCorePlugin.h b/src/api/QGCCorePlugin.h index 3b498d7568..a1f6df0281 100644 --- a/src/api/QGCCorePlugin.h +++ b/src/api/QGCCorePlugin.h @@ -75,8 +75,7 @@ public: virtual QString brandImageOutdoor(void) const { return QString(); } /// @return The message to show to the user when they a re prompted to confirm turning on advanced ui. - virtual QString showAdvancedUIMessage(void) const { return tr("WARNING: You are about to enter Advanced Mode. This may expose features which may cause your vehicle to malfunction. " - "You should do so only if instructed by customer support. Are you sure you want to enable Advanced Mode?"); } + virtual QString showAdvancedUIMessage(void) const; /// @return An instance of an alternate postion source (or NULL if not available) virtual QGeoPositionInfoSource* createPositionSource(QObject* parent) { Q_UNUSED(parent); return NULL; } -- GitLab