Browse Source

Mention voiding warranty in show advanced ui confirmation

QGC4.4
DonLakeFlyer 8 years ago
parent
commit
349e885af0
  1. 8
      src/api/QGCCorePlugin.cc
  2. 3
      src/api/QGCCorePlugin.h

8
src/api/QGCCorePlugin.cc

@ -190,3 +190,11 @@ void QGCCorePlugin::paletteOverride(QString colorName, QGCPalette::PaletteColorI @@ -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?");
}

3
src/api/QGCCorePlugin.h

@ -75,8 +75,7 @@ public: @@ -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; }

Loading…
Cancel
Save