summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-22 17:09:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-23 13:19:11 -0800
commit64dea827bdeddf6b6c2e59295bd7bd69c9a147e4 (patch)
treee1e868e3c570f5d54d265dcbcfca24aef1e81823 /mobile-widgets/qmlmanager.cpp
parentfaafcd0cfc2301fd77ba2deb68619fec099ad6fd (diff)
downloadsubsurface-64dea827bdeddf6b6c2e59295bd7bd69c9a147e4.tar.gz
mobile/debugging: copy GPS fixes to clipboard
The goal is to enable a user experiencing crashes when applying GPS data to their dive log to make all necessary data available to the developers. Hopefully the clipboard is large enough to hold all the data. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index fddc61d3a..878d4618c 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -492,6 +492,16 @@ void QMLManager::copyAppLogToClipboard()
QApplication::clipboard()->setText(getCombinedLogs(), QClipboard::Clipboard);
}
+void QMLManager::copyGpsFixesToClipboard()
+{
+ // This of course creates a potential privacy issue, so let's be clear about that
+ QString gpsWarning("Sending these GPS data to someone exposes your location history; ");
+ gpsWarning += "they can, however, be helpful when debugging problems with the app. ";
+ gpsWarning += "Please consider carefully where you are seninding these data.\n\n";
+ gpsWarning += GpsLocation::instance()->getFixString();
+ QApplication::clipboard()->setText(gpsWarning, QClipboard::Clipboard);
+}
+
bool QMLManager::createSupportEmail()
{
QString mailToLink = "mailto:in-app-support@subsurface-divelog.org?subject=Subsurface-mobile support request";