mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
faafcd0cfc
commit
64dea827bd
5 changed files with 31 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue