diff --git a/src/QmlControls/QGroundControlQmlGlobal.cc b/src/QmlControls/QGroundControlQmlGlobal.cc index f65a93d27dba6f0fd6cb7f80edad91c07439cdbc..8ec4f55a33cba744f74c579917c383f7d5fd24f6 100644 --- a/src/QmlControls/QGroundControlQmlGlobal.cc +++ b/src/QmlControls/QGroundControlQmlGlobal.cc @@ -248,3 +248,14 @@ void QGroundControlQmlGlobal::setFlightMapZoom(double zoom) emit flightMapZoomChanged(zoom); } } + +QString QGroundControlQmlGlobal::qgcVersion(void) const +{ + QString versionStr = qgcApp()->applicationVersion(); +#ifdef __androidArm32__ + versionStr += QStringLiteral(" %1").arg(tr("32 bit")); +#elif __androidArm64__ + versionStr += QStringLiteral(" %1").arg(tr("64 bit")); +#endif + return versionStr; +} diff --git a/src/QmlControls/QGroundControlQmlGlobal.h b/src/QmlControls/QGroundControlQmlGlobal.h index db8e0b8d8e7945073feb745ba4151414cc9aef76..006a07bf7b3f284f16263ec7fcdd074b588081ac 100644 --- a/src/QmlControls/QGroundControlQmlGlobal.h +++ b/src/QmlControls/QGroundControlQmlGlobal.h @@ -227,11 +227,11 @@ public: void setFlightMapPosition (QGeoCoordinate& coordinate); void setFlightMapZoom (double zoom); - QString parameterFileExtension(void) const { return AppSettings::parameterFileExtension; } - QString missionFileExtension(void) const { return AppSettings::missionFileExtension; } - QString telemetryFileExtension(void) const { return AppSettings::telemetryFileExtension; } + QString parameterFileExtension (void) const { return AppSettings::parameterFileExtension; } + QString missionFileExtension (void) const { return AppSettings::missionFileExtension; } + QString telemetryFileExtension (void) const { return AppSettings::telemetryFileExtension; } - QString qgcVersion(void) const { return qgcApp()->applicationVersion(); } + QString qgcVersion (void) const; #if defined(QGC_AIRMAP_ENABLED) bool airmapSupported() { return true; }